diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 72fa668e01b..6accd3c8bd4 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) {