aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-05 21:29:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-05 21:29:20 +0000
commitb47b053e54e4e6cfa49c06435b76190ebd00d860 (patch)
treec62dfce255d7e1ae0ef4b2f5ee3f1d6bf2d56fbf /lib/multi.c
parentb79f01caf3af991043b984d07956b867480006cd (diff)
Gustaf Hui fixed curl_multi_remove_handle() to prevent a potential crash
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 3fcfb8be0..d6ede8235 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -179,6 +179,9 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
/* If the 'state' is not INIT or COMPLETED, we might need to do something
nice to put the easy_handle in a good known state when this returns. */
+ /* clear out the usage of the shared DNS cache */
+ easy->easy_handle->hostcache = NULL;
+
/* make the previous node point to our next */
if(easy->prev)
easy->prev->next = easy->next;