From 30b7a9f17290d79cd5c51be287e6cbd4fd4eab90 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 Aug 2002 12:01:57 +0000 Subject: [PATCH] fixed a Curl_connecthost() bug, we should default to set connected to false --- lib/connect.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.34.1