]> granicus.if.org Git - curl/commitdiff
fixed time-out returned without error text set
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Jan 2002 22:26:01 +0000 (22:26 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 16 Jan 2002 22:26:01 +0000 (22:26 +0000)
lib/connect.c

index 61e45689e28c62dbb76fc2e7447bb5c822418d78..34fc1e844232c841210fdf77dc7edcbe91047873 100644 (file)
@@ -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