aboutsummaryrefslogtreecommitdiff
path: root/resolv/res_init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-12-03 07:30:39 +0000
committerUlrich Drepper <drepper@redhat.com>2008-12-03 07:30:39 +0000
commitda5ac1352d139a70edb550bb5ff2a2879eaaa926 (patch)
treef34c42153913c35ad66b30db5fc480ac11d3f843 /resolv/res_init.c
parent6f5c31171fbd45c79c9bbeea4d6305f9c798e421 (diff)
downloadglibc-da5ac1352d139a70edb550bb5ff2a2879eaaa926.tar
glibc-da5ac1352d139a70edb550bb5ff2a2879eaaa926.tar.gz
glibc-da5ac1352d139a70edb550bb5ff2a2879eaaa926.tar.bz2
glibc-da5ac1352d139a70edb550bb5ff2a2879eaaa926.zip
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
ESRCH return value. (_nss_dns_gethostbyname4_r): Likewise. * resolv/res_init.c (__res_vinit): Initialize nscount to zero. * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use gethostbyname4_r, we don't have a separate IPv6 status, so copy the no_data variable.
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r--resolv/res_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c
index d93dc82718..0cdd55e71b 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -183,7 +183,7 @@ __res_vinit(res_state statp, int preinit) {
#endif
statp->nsaddr.sin_family = AF_INET;
statp->nsaddr.sin_port = htons(NAMESERVER_PORT);
- statp->nscount = 1;
+ statp->nscount = 0;
statp->ndots = 1;
statp->pfcode = 0;
statp->_vcsock = -1;