]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - cups/patches/016_cups-res_init.patch
libtevent: Update to version 0.9.30
[people/ms/ipfire-3.x.git] / cups / patches / 016_cups-res_init.patch
1 diff -up cups-1.6b1/cups/http-addr.c.res_init cups-1.6b1/cups/http-addr.c
2 --- cups-1.6b1/cups/http-addr.c.res_init 2012-05-17 00:57:03.000000000 +0200
3 +++ cups-1.6b1/cups/http-addr.c 2012-05-25 15:51:51.323916352 +0200
4 @@ -254,7 +254,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.6b1/cups/http-addrlist.c.res_init cups-1.6b1/cups/http-addrlist.c
15 --- cups-1.6b1/cups/http-addrlist.c.res_init 2012-04-23 19:26:57.000000000 +0200
16 +++ cups-1.6b1/cups/http-addrlist.c 2012-05-25 16:05:05.930377452 +0200
17 @@ -540,7 +540,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_INTERNAL_ERROR, gai_strerror(error), 0);