]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix spurious UNAVAIL status is getaddrinfo
authorAndreas Schwab <schwab@redhat.com>
Fri, 26 Mar 2010 12:35:50 +0000 (05:35 -0700)
committerAndreas Schwab <schwab@redhat.com>
Fri, 9 Apr 2010 11:54:35 +0000 (13:54 +0200)
(cherry picked from commit c3dfadb87e16f0fab6f4d5242bcecf06c02976c7)

ChangeLog
sysdeps/posix/getaddrinfo.c

index 2ad565534e7cc4dbaa6e75e9717ee4a4cfdfc74a..1b4bff098d86d8776bbc46c63cad214600caf488 100644 (file)
--- 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-09  David S. Miller  <davem@davemloft.net>
 
        * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
index 62c38f69be1ac34cefb14feec7a03ba47a144f1c..8b7e38fdea11db4186a771fecda4d8efdc83f000 100644 (file)
@@ -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)