2012-08-08 11:28:28 +00:00
|
|
|
diff -up cups-1.6b1/cups/http-addr.c.res_init cups-1.6b1/cups/http-addr.c
|
|
|
|
--- cups-1.6b1/cups/http-addr.c.res_init 2012-05-17 00:57:03.000000000 +0200
|
|
|
|
+++ cups-1.6b1/cups/http-addr.c 2012-05-25 15:51:51.323916352 +0200
|
|
|
|
@@ -254,7 +254,8 @@ httpAddrLookup(
|
2011-01-10 15:35:08 +00:00
|
|
|
|
|
|
|
if (error)
|
|
|
|
{
|
|
|
|
- if (error == EAI_FAIL)
|
|
|
|
+ if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
|
|
|
|
+ error == EAI_NONAME)
|
|
|
|
cg->need_res_init = 1;
|
|
|
|
|
|
|
|
return (httpAddrString(addr, name, namelen));
|
2012-08-08 11:28:28 +00:00
|
|
|
diff -up cups-1.6b1/cups/http-addrlist.c.res_init cups-1.6b1/cups/http-addrlist.c
|
|
|
|
--- cups-1.6b1/cups/http-addrlist.c.res_init 2012-04-23 19:26:57.000000000 +0200
|
|
|
|
+++ cups-1.6b1/cups/http-addrlist.c 2012-05-25 16:05:05.930377452 +0200
|
|
|
|
@@ -540,7 +540,8 @@ httpAddrGetList(const char *hostname, /*
|
2009-03-23 18:04:54 +00:00
|
|
|
}
|
2012-08-08 11:28:28 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
- if (error == EAI_FAIL)
|
|
|
|
+ if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
|
|
|
|
+ error == EAI_NONAME)
|
|
|
|
cg->need_res_init = 1;
|
2009-03-23 18:04:54 +00:00
|
|
|
|
2012-08-08 11:28:28 +00:00
|
|
|
_cupsSetError(IPP_INTERNAL_ERROR, gai_strerror(error), 0);
|