diff --git a/lib/connect.c b/lib/connect.c index 588ac28b55..33f7aec3df 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -1081,7 +1081,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ { struct SessionHandle *data = conn->data; struct timeval before = Curl_tvnow(); - CURLcode res; + CURLcode res = CURLE_COULDNT_CONNECT; long timeout_ms = Curl_timeleft(data, &before, TRUE);