Blame SOURCES/glibc-rh804689.patch

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