aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-03-26 05:35:50 -0700
committerUlrich Drepper <drepper@redhat.com>2010-03-26 05:35:50 -0700
commitc3dfadb87e16f0fab6f4d5242bcecf06c02976c7 (patch)
treea8f7b7e7e275fe44b86fee51e5765290acadfb2f
parent2b0fba7530eafb3d815b8c9f3d546d3494680102 (diff)
downloadglibc-c3dfadb87e16f0fab6f4d5242bcecf06c02976c7.zip
glibc-c3dfadb87e16f0fab6f4d5242bcecf06c02976c7.tar.gz
glibc-c3dfadb87e16f0fab6f4d5242bcecf06c02976c7.tar.bz2
Fix spurious UNAVAIL status is getaddrinfo
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/posix/getaddrinfo.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d4d4826..2ba417b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-25 Andreas Schwab <schwab@redhat.com>
+
+ * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
+ each action.
+
2010-03-26 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c: Remove stale reference to website.
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 62c38f6..8b7e38f 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)