mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03:00
Gustaf Hui fixed curl_multi_remove_handle() to prevent a potential crash
This commit is contained in:
parent
b79f01caf3
commit
b47b053e54
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue