2f721cea89
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/cups#d1b1c28d68dd50f836a2011fe57edd27461bc5e5
26 lines
506 B
Diff
26 lines
506 B
Diff
diff --git a/cups/http-addrlist.c b/cups/http-addrlist.c
|
|
index e4ffc3d..a989055 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 --;
|