mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:23:39 +03:00
multi: fix crash due to dangling entry in connect-pending list
Fixes #2677 Closes #2679
This commit is contained in:
parent
146178a9df
commit
4c901638b4
5 changed files with 109 additions and 2 deletions
|
|
@ -712,6 +712,11 @@ CURLMcode curl_multi_remove_handle(struct Curl_multi *multi,
|
|||
Curl_getoff_all_pipelines(data, data->easy_conn);
|
||||
}
|
||||
|
||||
if(data->connect_queue.ptr)
|
||||
/* the handle was in the pending list waiting for an available connection,
|
||||
so go ahead and remove it */
|
||||
Curl_llist_remove(&multi->pending, &data->connect_queue, NULL);
|
||||
|
||||
if(data->dns.hostcachetype == HCACHE_MULTI) {
|
||||
/* stop using the multi handle's DNS cache, *after* the possible
|
||||
multi_done() call above */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue