4743e1
diff -up cups-1.5b1/cups/http-addr.c.res_init cups-1.5b1/cups/http-addr.c
4743e1
--- cups-1.5b1/cups/http-addr.c.res_init	2011-04-16 01:38:13.000000000 +0200
4743e1
+++ cups-1.5b1/cups/http-addr.c	2011-05-24 15:56:50.000000000 +0200
4743e1
@@ -256,7 +256,8 @@ httpAddrLookup(
Tim Waugh ac3f59
 
Tim Waugh ac3f59
     if (error)
Tim Waugh ac3f59
     {
Tim Waugh ac3f59
-      if (error == EAI_FAIL)
Tim Waugh ac3f59
+      if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
Tim Waugh ac3f59
+          error == EAI_NONAME)
Tim Waugh ac3f59
         cg->need_res_init = 1;
Tim Waugh ac3f59
 
Tim Waugh ac3f59
       return (httpAddrString(addr, name, namelen));
4743e1
diff -up cups-1.5b1/cups/http-addrlist.c.res_init cups-1.5b1/cups/http-addrlist.c
4743e1
--- cups-1.5b1/cups/http-addrlist.c.res_init	2011-05-20 05:49:49.000000000 +0200
4743e1
+++ cups-1.5b1/cups/http-addrlist.c	2011-05-24 15:56:50.000000000 +0200
4743e1
@@ -386,7 +386,8 @@ httpAddrGetList(const char *hostname,	/*
Tim Waugh eaed78
 
Tim Waugh eaed78
       freeaddrinfo(results);
Tim Waugh eaed78
     }
Tim Waugh eaed78
-    else if (error == EAI_FAIL)
Tim Waugh ac3f59
+    else if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
Tim Waugh ac3f59
+             error == EAI_NONAME)
Tim Waugh eaed78
       cg->need_res_init = 1;
Tim Waugh eaed78
 
Tim Waugh eaed78
 #else