summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/net/res_send.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c
index 72fa668..6accd3c 100644
--- a/lib/libc/net/res_send.c
+++ b/lib/libc/net/res_send.c
@@ -739,11 +739,10 @@ read_len:
TIMEVAL_TO_TIMESPEC(&ctv, &ts);
goto wait;
}
- } else {
- Perror(stderr, "kevent", errno);
- res_close();
- goto next_ns;
}
+ Perror(stderr, "kevent", errno);
+ res_close();
+ goto next_ns;
}
if (n == 0) {
OpenPOWER on IntegriCloud