fixed a Curl_connecthost() bug, we should default to set connected to false
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2002 12:01:57 +0000 (12:01 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2002 12:01:57 +0000 (12:01 +0000)
lib/connect.c

index 545062c66108d21e00b5fe3db9216e9e471ed177..9bbf8409c8c7504d64103272b54f18e9fda109fe 100644 (file)
@@ -427,6 +427,9 @@ CURLcode Curl_connecthost(struct connectdata *conn,  /* context */
    * Figure out what maximum time we have left
    *************************************************************/
   long timeout_ms=300000; /* milliseconds, default to five minutes */
+
+  *connected = FALSE; /* default to not connected */
+
   if(data->set.timeout || data->set.connecttimeout) {
     double has_passed;