Make queries using the search list for hostname lookups fail with
authoreric <eric@openbsd.org>
Wed, 23 Jul 2014 21:26:25 +0000 (21:26 +0000)
committereric <eric@openbsd.org>
Wed, 23 Jul 2014 21:26:25 +0000 (21:26 +0000)
commitab50be5eff078dfe4612ed160ec84fbd16d07f82
tree3c07e2a5e85ac6c8526b9361f11cb068ce3b78eb
parent51cd77f432ab40a20d44c93e0335540267eaf5bd
Make queries using the search list for hostname lookups fail with
NO_DATA/EAI_NODATA when the hostname param is an empty string.
So far, they were using the entries in the search list with no
additional component, which is not really expected.

reported by jsing@ and a few others

ok deraadt@, "makes sense" jsing@
lib/libc/asr/getaddrinfo_async.c
lib/libc/asr/gethostnamadr_async.c
lib/libc/asr/getnetnamadr_async.c
lib/libc/asr/res_search_async.c