aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-09-21 23:10:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-09-21 23:10:47 +0000
commit8aa2894bfb9a379ebb47ada638736b00ba46a1ea (patch)
treebd456075a6579c8532d205854e1f4f7016f6580c
parentf40467638de40c19d7f4faeb3d7e320af2a76fb1 (diff)
failing to resolve a name using ares must Curl_disconnect() the handle
properly or risk getting into trouble!
-rw-r--r--lib/multi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index ddefa9ec8..a1e10d59b 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -375,6 +375,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
if(CURLE_OK != easy->result) {
/* failure detected */
+ Curl_disconnect(easy->easy_conn); /* disconnect properly */
easy->easy_conn = NULL; /* no more connection */
break;
}