diff --git a/lib/multi.c b/lib/multi.c index 3fcfb8be02e378e34869b395b80b69752e9e922d..d6ede82358b00a1ca30a30eae1bad55eb7bd66be 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;