]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix Ipv4&IPv6 lookup in getaddrinfo
authorAndreas Schwab <schwab@redhat.com>
Wed, 22 Jun 2011 18:35:49 +0000 (14:35 -0400)
committerAndreas Schwab <schwab@redhat.com>
Fri, 24 Jun 2011 14:14:25 +0000 (16:14 +0200)
Problem introduced in the last patch.
(cherry picked from commit e12df166d37522c2ed434c2d70a1b04640d2d7c6)

ChangeLog
sysdeps/posix/getaddrinfo.c

index 47a9fbbb573cec276655b423a9b5e33a90ab0d6e..c90463ec741f91e770b915577d904f06372d1061 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-21  Ulrich Drepper  <drepper@gmail.com>
 
        [BZ #12885]
index abd8551074c710c4fb1ee9f2ba1a717c2914f62e..6b7423cda142c6027d26074b3c47bfb39cf7dfd8 100644 (file)
@@ -904,7 +904,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);