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

fixed time-out returned without error text set

parent b3b47869
No related branches found
No related tags found
No related merge requests found
......@@ -369,9 +369,11 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
/* 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 */
failf(data, "Connection time-out");
return CURLE_OPERATION_TIMEOUTED;
}
}
#ifdef ENABLE_IPV6
......
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