Set correct errno field in struct asr_result.
authorflorian <florian@openbsd.org>
Wed, 22 Nov 2023 13:19:31 +0000 (13:19 +0000)
committerflorian <florian@openbsd.org>
Wed, 22 Nov 2023 13:19:31 +0000 (13:19 +0000)
commit0657965007f90112353fb1f1de29e606be1eea74
tree11fc7f03407df83b4d05d18930ff515c209b0f74
parent88b4d909edb50bcf7980a536923ed464352d067e
Set correct errno field in struct asr_result.

Otherwise gethostbyname(3) returns stack garbage when it is called
with an invalid host name, indicating success.
Problem observed in segfaulting ifconfig(8) by bluhm.
lib/libc/asr/gethostnamadr_async.c