diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-12 12:01:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-12 12:01:57 +0000 |
commit | 30b7a9f17290d79cd5c51be287e6cbd4fd4eab90 (patch) | |
tree | ab1cf474b5ccb0053a58996dba1484cfa307801e | |
parent | c74cb59e0843144ada7ad5e5b90303a66bb27c44 (diff) |
fixed a Curl_connecthost() bug, we should default to set connected to false
-rw-r--r-- | lib/connect.c | 3 |
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; |