aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-12 12:01:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-12 12:01:57 +0000
commit30b7a9f17290d79cd5c51be287e6cbd4fd4eab90 (patch)
treeab1cf474b5ccb0053a58996dba1484cfa307801e
parentc74cb59e0843144ada7ad5e5b90303a66bb27c44 (diff)
fixed a Curl_connecthost() bug, we should default to set connected to false
-rw-r--r--lib/connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 545062c66..9bbf8409c 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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;