OpenBSD/src XxolBZ1 — lib/libc/asr gethostnamadr_async.c
If we don't receive a reply packet the res_send subquery will already have set subq_h_errno and ar_count. Remove the ar_datalen == -1 check, so we set ar_h_errno and don't have to (wrongly) guess that ar_h_errno = HOST_NOT_FOUND. This makes sure that if no nameserver responds the h_errno value is set to TRY_AGAIN instead of HOST_NOT_FOUND. OK eric@, deraadt@
Version | Delta | File | |
---|---|---|---|
1.45 | +5 | -7 | lib/libc/asr/gethostnamadr_async.c |
+5 | -7 | 1 files |