Blame SOURCES/glibc-rh804689.patch

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