]> git.pld-linux.org Git - packages/cups.git/blob - cups-res_init.patch
Release 4 (by relup.sh)
[packages/cups.git] / cups-res_init.patch
1 diff -up cups-1.7b1/cups/http-addr.c.res_init cups-1.7b1/cups/http-addr.c
2 --- cups-1.7b1/cups/http-addr.c.res_init        2013-03-20 19:14:10.000000000 +0100
3 +++ cups-1.7b1/cups/http-addr.c 2013-04-19 12:01:36.927512159 +0200
4 @@ -319,7 +319,8 @@ httpAddrLookup(
5  
6      if (error)
7      {
8 -      if (error == EAI_FAIL)
9 +      if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
10 +          error == EAI_NONAME)
11          cg->need_res_init = 1;
12  
13        return (httpAddrString(addr, name, namelen));
14 diff -up cups-1.7b1/cups/http-addrlist.c.res_init cups-1.7b1/cups/http-addrlist.c
15 --- cups-1.7b1/cups/http-addrlist.c.res_init    2013-04-19 12:01:36.930512119 +0200
16 +++ cups-1.7b1/cups/http-addrlist.c     2013-04-19 12:03:13.769229554 +0200
17 @@ -581,7 +581,8 @@ httpAddrGetList(const char *hostname,       /*
18      }
19      else
20      {
21 -      if (error == EAI_FAIL)
22 +      if (error == EAI_FAIL || error == EAI_AGAIN || error == EAI_NODATA ||
23 +          error == EAI_NONAME)
24          cg->need_res_init = 1;
25  
26        _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gai_strerror(error), 0);
This page took 0.037734 seconds and 3 git commands to generate.