getaddrinfo() should not res_init() unconditionally, but allow lower
authorderaadt <deraadt@openbsd.org>
Wed, 7 Oct 2015 13:57:12 +0000 (13:57 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 7 Oct 2015 13:57:12 +0000 (13:57 +0000)
commit2ead0dac8a4e3fd4c81a98096ba84e9e2bd58dd7
tree386d9a5616d1952d4d8c39ccf00938ae0ed3ad54
parent217902d8c9c3cb5f49d53649c8409fac17864d12
getaddrinfo() should not res_init() unconditionally, but allow lower
layers to decide.  The request could be AI_NUMERICHOST.  [And the process
could be tame()-constrained to not open /etc/resolv.conf]
ok eric guenther
lib/libc/asr/getaddrinfo.c