Improve asr error handling.
authorflorian <florian@openbsd.org>
Tue, 18 Apr 2023 09:57:08 +0000 (09:57 +0000)
committerflorian <florian@openbsd.org>
Tue, 18 Apr 2023 09:57:08 +0000 (09:57 +0000)
commit43bd63ce9688e1aa63c59d9420c1792c4dca6206
treeaa6a752e53ef4b16b43c2baf4772e0bf878f7f8d
parent7d78a294ceda73681e5959c871ee7745af480f83
Improve asr error handling.

When an upstream nameserver is not available asr is not synthesizing a
SERVFAIL rcode (duh), but sets ar_errno. When we need SERVFAIL further
down,we need to set the rcode ourselves.

While here, don't complain about a too short packet when asr already
told us that resolving did not work out in check_dns64_done.

OK semarie
sbin/unwind/resolver.c