Fix Ipv4&IPv6 lookup in getaddrinfo
authorAndreas Schwab <schwab@redhat.com>
Wed, 22 Jun 2011 18:35:49 +0000 (14:35 -0400)
committerUlrich Drepper <drepper@gmail.com>
Wed, 22 Jun 2011 18:35:49 +0000 (14:35 -0400)
Problem introduced in the last patch.

ChangeLog
sysdeps/posix/getaddrinfo.c

index 68409c9..33b7703 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-22  Andreas Schwab  <schwab@redhat.com>
+
+       * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
+
 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
 
        * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
index 3a2737e..14e9270 100644 (file)
@@ -894,7 +894,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
                              pat = &((*pat)->next);
                              no_data = 0;
                            }
-                         else if ((*pat)->family == AF_UNSPEC
+                         else if (req->ai_family == AF_UNSPEC
                                   || (*pat)->family == req->ai_family)
                            {
                              pat = &((*pat)->next);