You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
506 B
26 lines
506 B
9 months ago
|
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 --;
|