1
0
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:
Daniel Stenberg 2003-11-15 10:29:43 +00:00
parent bfc7d6c11b
commit a0a5668dbd

View File

@ -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;