From: Andreas Schwab Date: Fri, 26 Mar 2010 12:35:50 +0000 (-0700) Subject: Fix spurious UNAVAIL status is getaddrinfo X-Git-Tag: fedora/glibc-2.11.90-17~2^2~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3dfadb87e16f0fab6f4d5242bcecf06c02976c7;p=thirdparty%2Fglibc.git Fix spurious UNAVAIL status is getaddrinfo --- diff --git a/ChangeLog b/ChangeLog index d4d4826a2c2..2ba417bb2ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-25 Andreas Schwab + + * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before + each action. + 2010-03-26 Ulrich Drepper * malloc/malloc.c: Remove stale reference to website. diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 62c38f69be1..8b7e38fdea1 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -702,6 +702,7 @@ gaih_inet (const char *name, const struct gaih_service *service, while (!no_more) { + no_data = 0; nss_gethostbyname4_r fct4 = __nss_lookup_function (nip, "gethostbyname4_r"); if (fct4 != NULL)