mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
multi_done: wait for name resolve to finish if still ongoing
... as we must clean up memory.
This commit is contained in:
parent
5b54df06d2
commit
f3e03f6c0a
@ -537,6 +537,12 @@ static CURLcode multi_done(struct connectdata **connp,
|
|||||||
/* Stop if multi_done() has already been called */
|
/* Stop if multi_done() has already been called */
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
|
|
||||||
|
if(data->mstate == CURLM_STATE_WAITRESOLVE) {
|
||||||
|
/* done while still waiting for the resolve to complete */
|
||||||
|
struct Curl_dns_entry *throw_away;
|
||||||
|
(void)Curl_resolver_wait_resolv(conn, &throw_away);
|
||||||
|
}
|
||||||
|
|
||||||
Curl_getoff_all_pipelines(data, conn);
|
Curl_getoff_all_pipelines(data, conn);
|
||||||
|
|
||||||
/* Cleanup possible redirect junk */
|
/* Cleanup possible redirect junk */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user