Do not short-circuit localhost resolution when AI_NUMERICHOST is set.
authorflorian <florian@openbsd.org>
Tue, 21 Nov 2023 15:26:56 +0000 (15:26 +0000)
committerflorian <florian@openbsd.org>
Tue, 21 Nov 2023 15:26:56 +0000 (15:26 +0000)
commitfada2b0bd226843a6444c75947c346f81ce1fa83
treed5beba7e97762fe210d32b83eb107ddf2c973396
parent98b1b78aea1b08336e2be5d497029949269a536b
Do not short-circuit localhost resolution when AI_NUMERICHOST is set.

localhost is not a valid IP address and so getaddrinfo(3) has to fail.
Found by anton in pfctl & ipsecctl regress.

OK anton
lib/libc/asr/getaddrinfo_async.c