mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
added a missing failf() before returning an error code
This commit is contained in:
parent
eecb86bfb0
commit
d57e09889a
@ -783,9 +783,11 @@ Curl_SSLConnect(struct connectdata *conn)
|
|||||||
/* subtract the passed time */
|
/* subtract the passed time */
|
||||||
timeout_ms -= (long)has_passed;
|
timeout_ms -= (long)has_passed;
|
||||||
|
|
||||||
if(timeout_ms < 0)
|
if(timeout_ms < 0) {
|
||||||
/* a precaution, no need to continue if time already is up */
|
/* a precaution, no need to continue if time already is up */
|
||||||
return CURLE_OPERATION_TIMEOUTED;
|
failf(data, "SSL connection timeout");
|
||||||
|
return CURLE_OPERATION_TIMEOUTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* no particular time-out has been set */
|
/* no particular time-out has been set */
|
||||||
|
Loading…
Reference in New Issue
Block a user