Skip to content
Snippets Groups Projects
Commit d57e0988 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added a missing failf() before returning an error code

parent eecb86bf
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment