Skip to content

Commit

Permalink
added a missing failf() before returning an error code
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jan 8, 2002
1 parent eecb86b commit d57e098
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ssluse.c
Expand Up @@ -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 */
Expand Down

0 comments on commit d57e098

Please sign in to comment.