about summary refs log tree commit diff
path: root/support/resolv_test.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-25 20:47:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-25 20:47:51 +0200
commit5af1e931bfaf8ef28abd94c0c0ad14e4790cf429 (patch)
tree9990cec1ebdbbca1f363e8f19632df49ea980763 /support/resolv_test.c
parent9947638d74f490b8ec9a1563c195881a4151bd80 (diff)
downloadglibc-5af1e931bfaf8ef28abd94c0c0ad14e4790cf429.tar.gz
glibc-5af1e931bfaf8ef28abd94c0c0ad14e4790cf429.tar.xz
glibc-5af1e931bfaf8ef28abd94c0c0ad14e4790cf429.zip
Revert "resolv_test.c: also cope with CONNREFUSED errors returned by recvfrom"
This reverts commit 6174537c24cfe324d6e8f5a2a421883df12b8b6a.
Diffstat (limited to 'support/resolv_test.c')
-rw-r--r--support/resolv_test.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/support/resolv_test.c b/support/resolv_test.c
index c3325b89b1..1625dcf43a 100644
--- a/support/resolv_test.c
+++ b/support/resolv_test.c
@@ -600,7 +600,7 @@ server_thread_udp_process_one (struct resolv_test *obj, int server_index)
   unsigned char query[512];
   struct sockaddr_storage peer;
   socklen_t peerlen = sizeof (peer);
-  ssize_t length = recvfrom (obj->servers[server_index].socket_udp,
+  size_t length = xrecvfrom (obj->servers[server_index].socket_udp,
                              query, sizeof (query), 0,
                              (struct sockaddr *) &peer, &peerlen);
   /* Check for termination.  */
@@ -613,12 +613,6 @@ server_thread_udp_process_one (struct resolv_test *obj, int server_index)
       return false;
   }
 
-  if (length < 0)
-    {
-      /* The other end had closed the socket, and we are notified only now. */
-      TEST_VERIFY_EXIT (errno == ECONNREFUSED);
-      return true;
-    }
 
   struct query_info qinfo;
   parse_query (&qinfo, query, length);