getaddrinfo_async() shouldn't unconditionally intialize the resolver
authorderaadt <deraadt@openbsd.org>
Wed, 7 Oct 2015 13:59:34 +0000 (13:59 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 7 Oct 2015 13:59:34 +0000 (13:59 +0000)
commit656b8d513650c05e27d8c5044c6432310062d847
tree5606c4df6b6c984719f47e0443ec9837bdf4f12a
parent2ead0dac8a4e3fd4c81a98096ba84e9e2bd58dd7
getaddrinfo_async() shouldn't unconditionally intialize the resolver
via _asr_use_resolver().  If the hint specifies for AI_NUMERICHOST,
create a transient lookup context which won't try to open /etc/reslov.conf
ok eric guenther
lib/libc/asr/asr.c
lib/libc/asr/asr_private.h
lib/libc/asr/getaddrinfo_async.c