mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
do ares_destroy() on the ares handle when we're done in Curl_is_resolved()
This commit is contained in:
parent
bfc7d6c11b
commit
a0a5668dbd
@ -446,6 +446,8 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
|
||||
*dns = NULL;
|
||||
|
||||
if(conn->async.done) {
|
||||
/* we're done, kill the ares handle */
|
||||
ares_destroy(data->state.areschannel);
|
||||
if(!conn->async.dns)
|
||||
return CURLE_COULDNT_RESOLVE_HOST;
|
||||
*dns = conn->async.dns;
|
||||
|
Loading…
Reference in New Issue
Block a user