When checking for available address family for AI_ADDRCONFIG consider
authorflorian <florian@openbsd.org>
Tue, 26 Jan 2021 12:27:28 +0000 (12:27 +0000)
committerflorian <florian@openbsd.org>
Tue, 26 Jan 2021 12:27:28 +0000 (12:27 +0000)
commit52b8ecd4566ec9c48962aadd16a80005f3b90265
tree835663d1869afc1f567228aec11d6a46b4c6b4a4
parent8776b5731e0b2cce3e7f16acff4c90510b3129ee
When checking for available address family for AI_ADDRCONFIG consider
the routing domain we are currently in. Otherwise we might end up with
address families that are not available in the current rdomain but in
others since getifaddrs(3) gives us all interface addresses in the
system.
Clue-bat & OK claudio, input & OK eric, OK kn
lib/libc/asr/getaddrinfo_async.c