Blame SOURCES/glibc-rh804689.patch

b9ba6d
diff -rup a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
b9ba6d
--- a/sysdeps/posix/getaddrinfo.c	2012-03-20 21:31:14.177358937 -0600
b9ba6d
+++ b/sysdeps/posix/getaddrinfo.c	2012-03-21 09:13:17.198290683 -0600
b9ba6d
@@ -560,15 +563,11 @@ gaih_inet (const char *name, const struc
b9ba6d
 	  int no_more;
b9ba6d
 	  int old_res_options;
b9ba6d
 
b9ba6d
-	  /* If we do not have to look for IPv4 and IPv6 together, use
b9ba6d
-	     the simple, old functions.  */
b9ba6d
-	  if ((req->ai_family == AF_INET
b9ba6d
-	       || (req->ai_family == AF_INET6
b9ba6d
-		   && ((req->ai_flags & AI_V4MAPPED) == 0
b9ba6d
-		       || (req->ai_flags & AI_ALL) == 0)))
b9ba6d
-	      && (req->ai_flags & AI_CANONNAME) == 0)
b9ba6d
+	  /* If we do not have to look for IPv6 addresses, use
b9ba6d
+	     the simple, old functions, which do not support
b9ba6d
+	     IPv6 scope ids. */
b9ba6d
+	  if (req->ai_family == AF_INET)
b9ba6d
 	    {
b9ba6d
-	      int family = req->ai_family;
b9ba6d
 	      size_t tmpbuflen = 512;
b9ba6d
 	      assert (tmpbuf == NULL);
b9ba6d
 	      tmpbuf = alloca_account (tmpbuflen, alloca_used);