mirror of
https://github.com/curl/curl.git
synced 2026-05-21 10:26:20 +03:00
added a missing failf() before returning an error code
This commit is contained in:
parent
eecb86bfb0
commit
d57e09889a
1 changed files with 4 additions and 2 deletions
|
|
@ -783,9 +783,11 @@ Curl_SSLConnect(struct connectdata *conn)
|
|||
/* subtract the passed time */
|
||||
timeout_ms -= (long)has_passed;
|
||||
|
||||
if(timeout_ms < 0)
|
||||
if(timeout_ms < 0) {
|
||||
/* 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
|
||||
/* no particular time-out has been set */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue