aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_send.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 0c67d507bf..36915808e1 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -623,11 +623,13 @@ read_len:
if (timeout <= 0)
timeout = 1000;
wait:
+#if 0
if (s < 0 || s >= FD_SETSIZE) {
Perror(stderr, "s out-of-bounds", EMFILE);
res_close_internal();
goto next_ns;
}
+#endif
pfd[0].fd = s;
pfd[0].events = POLLIN;
n = __poll(pfd, 1, timeout);