diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-03-26 05:35:50 -0700 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2010-04-09 13:54:35 +0200 |
commit | 32494f9b7baee5a0184571304001f29338ba0f69 (patch) | |
tree | e58d175536f52d8ec15ad4f379a13a99831a9c18 | |
parent | ddb11ab93239ddeb744300740ac11308c1c2f958 (diff) |
Fix spurious UNAVAIL status is getaddrinfo
(cherry picked from commit c3dfadb87e16f0fab6f4d5242bcecf06c02976c7)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -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 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) |