aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-02-23 21:29:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-02-23 21:29:48 +0000
commit4486d336a65b871acd60bb650b65d8afc1177167 (patch)
treee3c31468fc23fd6ffbeaa236402281dd543fee2a /lib/multi.c
parent45e4b811b00e3f33d92bb1db8be6168c2d8a7ba2 (diff)
argh, forgot the check for a connection before we call Curl_done
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 6213fede4..f914761bb 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -245,7 +245,10 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
Curl_easy_addmulti(easy->easy_handle, NULL); /* clear the association
to this multi handle */
- Curl_done(&easy->easy_conn, easy->result);
+ /* if we have a connection we must call Curl_done() here so that we
+ don't leave a half-baked one around */
+ if(easy->easy_conn)
+ Curl_done(&easy->easy_conn, easy->result);
/* make the previous node point to our next */
if(easy->prev)