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