From a586935bded7452ecd4119bc82e1e759cac5acf5 Mon Sep 17 00:00:00 2001 From: Packit Date: Oct 27 2020 15:27:07 +0000 Subject: Apply patch cups-etimedout.patch patch_name: cups-etimedout.patch present_in_specfile: true --- diff --git a/cups/http-addrlist.c b/cups/http-addrlist.c index e4ffc3d..962b731 100644 --- a/cups/http-addrlist.c +++ b/cups/http-addrlist.c @@ -240,7 +240,10 @@ httpAddrConnect2( } if (!addrlist && nfds == 0) + { + errno = EHOSTDOWN; break; + } /* * See if we can connect to any of the addresses so far... @@ -371,6 +374,9 @@ httpAddrConnect2( remaining -= 250; } + if (remaining <= 0) + errno = ETIMEDOUT; + while (nfds > 0) { nfds --;