]> git.pld-linux.org Git - packages/cups.git/blame - cups-res_init.patch
- rediff patches
[packages/cups.git] / cups-res_init.patch
CommitLineData
424d0a83
JR
1diff -urNp -x '*.orig' cups-2.3.3.org/cups/http-addr.c cups-2.3.3/cups/http-addr.c
2--- cups-2.3.3.org/cups/http-addr.c 2020-04-27 20:04:29.000000000 +0200
3+++ cups-2.3.3/cups/http-addr.c 2021-04-20 22:45:56.326486636 +0200
4@@ -388,7 +388,8 @@ httpAddrLookup(
b3b50933
AM
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));
424d0a83
JR
14diff -urNp -x '*.orig' cups-2.3.3.org/cups/http-addrlist.c cups-2.3.3/cups/http-addrlist.c
15--- cups-2.3.3.org/cups/http-addrlist.c 2020-04-27 20:04:29.000000000 +0200
16+++ cups-2.3.3/cups/http-addrlist.c 2021-04-20 22:45:56.326486636 +0200
17@@ -649,7 +649,8 @@ httpAddrGetList(const char *hostname, /*
b3b50933
AM
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
424d0a83 26 # ifdef _WIN32 /* Really, Microsoft?!? */
This page took 0.023887 seconds and 4 git commands to generate.