diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-02-08 07:36:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-08 07:36:57 +0000 |
commit | e36fb1ecda1782204dbd352f7e2e836c019dd3e3 (patch) | |
tree | 1de6967786d6ae262cad455f08df27f4a20b8eb5 /lib/transfer.c | |
parent | e4a1788614aed581f03b54cd421ab949aac3b37d (diff) |
Curl_wait_for_resolv() no longer disconnects on failure, but leaves that
operation to the caller. Disconnecting has the disadvantage that the conn
pointer gets completely invalidated and this is not handled on lots of places
in the code.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index bf67842a1..ea7c5dbe3 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2038,6 +2038,8 @@ Curl_connect_host(struct SessionHandle *data, if(CURLE_OK == res) /* Resolved, continue with the connection */ res = Curl_async_resolved(*conn); + else + (void)Curl_disconnect(*conn); } if(res) break; |