For correctness, do not read struct servent if getservbyname_r() failed.
authoreric <eric@openbsd.org>
Sat, 3 Nov 2018 09:13:24 +0000 (09:13 +0000)
committereric <eric@openbsd.org>
Sat, 3 Nov 2018 09:13:24 +0000 (09:13 +0000)
commit172d89a7c9bfd1a002b8b73eecc3d14704949255
treebeb02ad5f8862b5f35b5d5609333d0b703ef9263
parenteb951427a001aef97287f1b50290e7b75b79e755
For correctness, do not read struct servent if getservbyname_r() failed.
Also simplify code.
lib/libc/asr/getaddrinfo_async.c