]> 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)
committerUlrich Drepper <drepper@redhat.com>
Fri, 26 Mar 2010 12:35:50 +0000 (05:35 -0700)
ChangeLog
sysdeps/posix/getaddrinfo.c

index d4d4826a2c2e1e9291101e830e1ac2dbfbebb9ca..2ba417bb2ed5fa580dcc8892cd55580d8e4bc078 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-26  Ulrich Drepper  <drepper@redhat.com>
 
        * malloc/malloc.c: Remove stale reference to website.
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)