Blame SOURCES/glibc-rh1098042.patch

147e83
commit cf26a0cb6a0bbaca46a01ddad6662e5e5159a32a
147e83
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
147e83
Date:   Thu May 15 12:33:11 2014 +0530
147e83
147e83
    Return EAI_AGAIN for AF_UNSPEC when herrno is TRY_AGAIN (BZ #16849)
147e83
    
147e83
    getaddrinfo correctly returns EAI_AGAIN for AF_INET and AF_INET6
147e83
    queries.  For AF_UNSPEC however, an older change
147e83
    (a682a1bf553b1efe4dbb03207fece5b719cec482) broke the check and due to
147e83
    that the returned error was EAI_NONAME.
147e83
    
147e83
    This patch fixes the check so that a non-authoritative not-found is
147e83
    returned as EAI_AGAIN to the user instead of EAI_NONAME.
147e83
147e83
diff --git glibc-2.17-c758a686/sysdeps/posix/getaddrinfo.c glibc-2.17-c758a686/sysdeps/posix/getaddrinfo.c
147e83
index 6258330..8f392b9 100644
147e83
--- glibc-2.17-c758a686/sysdeps/posix/getaddrinfo.c
147e83
+++ glibc-2.17-c758a686/sysdeps/posix/getaddrinfo.c
147e83
@@ -867,8 +867,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
147e83
 		      if (status != NSS_STATUS_TRYAGAIN
147e83
 			  || rc != ERANGE || herrno != NETDB_INTERNAL)
147e83
 			{
147e83
-			  if (status == NSS_STATUS_TRYAGAIN
147e83
-			      && herrno == TRY_AGAIN)
147e83
+			  if (herrno == TRY_AGAIN)
147e83
 			    no_data = EAI_AGAIN;
147e83
 			  else
147e83
 			    no_data = herrno == NO_DATA;