Blame SOURCES/cups-res_init.patch

ce62dc
diff -up cups-1.7b1/cups/http-addr.c.res_init cups-1.7b1/cups/http-addr.c
ce62dc
--- cups-1.7b1/cups/http-addr.c.res_init	2013-03-20 19:14:10.000000000 +0100
ce62dc
+++ cups-1.7b1/cups/http-addr.c	2013-04-19 12:01:36.927512159 +0200
ce62dc
@@ -319,7 +319,8 @@ httpAddrLookup(
ce62dc
 
ce62dc
     if (error)
ce62dc
     {
ce62dc
-      if (error == EAI_FAIL)
ce62dc
+      if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
ce62dc
+          error == EAI_NONAME)
ce62dc
         cg->need_res_init = 1;
ce62dc
 
ce62dc
       return (httpAddrString(addr, name, namelen));
ce62dc
diff -up cups-1.7b1/cups/http-addrlist.c.res_init cups-1.7b1/cups/http-addrlist.c
ce62dc
--- cups-1.7b1/cups/http-addrlist.c.res_init	2013-04-19 12:01:36.930512119 +0200
ce62dc
+++ cups-1.7b1/cups/http-addrlist.c	2013-04-19 12:03:13.769229554 +0200
ce62dc
@@ -581,7 +581,8 @@ httpAddrGetList(const char *hostname,	/*
ce62dc
     }
ce62dc
     else
ce62dc
     {
ce62dc
-      if (error == EAI_FAIL)
ce62dc
+      if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
ce62dc
+          error == EAI_NONAME)
ce62dc
         cg->need_res_init = 1;
ce62dc
 
ce62dc
       _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gai_strerror(error), 0);