summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/xmalloc.c
diff options
context:
space:
mode:
authormartijn <martijn@openbsd.org>2019-06-27 05:26:37 +0000
committermartijn <martijn@openbsd.org>2019-06-27 05:26:37 +0000
commite45d70c8b6187efbf0d77c599b98c0621570709a (patch)
tree280d5802457c1fe714b5deb91926b8752f756b49 /usr.bin/diff/xmalloc.c
parentAllow filters to log information through stderr. This simplifies and (diff)
downloadwireguard-openbsd-e45d70c8b6187efbf0d77c599b98c0621570709a.tar.xz
wireguard-openbsd-e45d70c8b6187efbf0d77c599b98c0621570709a.zip
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@
Diffstat (limited to 'usr.bin/diff/xmalloc.c')
0 files changed, 0 insertions, 0 deletions