Skip to content
Snippets Groups Projects
Commit b47b053e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Gustaf Hui fixed curl_multi_remove_handle() to prevent a potential crash

parent b79f01ca
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment