aboutsummaryrefslogtreecommitdiff
path: root/lib/hostares.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-08 07:36:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-08 07:36:57 +0000
commite36fb1ecda1782204dbd352f7e2e836c019dd3e3 (patch)
tree1de6967786d6ae262cad455f08df27f4a20b8eb5 /lib/hostares.c
parente4a1788614aed581f03b54cd421ab949aac3b37d (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/hostares.c')
-rw-r--r--lib/hostares.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostares.c b/lib/hostares.c
index 48d62115e..a54e25eda 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -249,7 +249,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
/* close the connection, since we can't return failure here without
cleaning up this connection properly */
- Curl_disconnect(conn);
+ conn->bits.close = TRUE;
}
return rc;