about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-03-26 05:35:50 -0700
committerPetr Baudis <pasky@ucw.cz>2010-05-12 02:23:42 +0200
commit9914417d124400a5b4104a9d8ef8d46d1d464c6e (patch)
tree15f069b71b30511d771ac60053d4869be9c8014f
parent8469d71f1ffc0c910f69b9097fafdcf6594e108f (diff)
downloadglibc-9914417d124400a5b4104a9d8ef8d46d1d464c6e.tar.gz
glibc-9914417d124400a5b4104a9d8ef8d46d1d464c6e.tar.xz
glibc-9914417d124400a5b4104a9d8ef8d46d1d464c6e.zip
Fix spurious UNAVAIL status is getaddrinfo
(cherry picked from commit c3dfadb87e16f0fab6f4d5242bcecf06c02976c7)
-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 92ec78d8c6..be91db9ff0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-03-25  Andreas Schwab  <schwab@redhat.com>
 
+	* sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
+	each action.
+
+2010-03-25  Andreas Schwab  <schwab@redhat.com>
+
 	* sysdeps/posix/cuserid.c: Fix typo.
 
 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 62c38f69be..8b7e38fdea 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)