mirror of
https://github.com/curl/curl.git
synced 2026-06-02 04:24:15 +03: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue