mirror of
https://github.com/curl/curl.git
synced 2026-05-15 14:56:20 +03:00
asyn-ares: use the duped hostname pointer for all calls
In one c-ares call the passed in pointer was used and not the new duplicated one. This is probably fine but might as well use the new pointer as all the other calls do, which will survive longer. Reported-by: Joshua Rogers Closes #18980
This commit is contained in:
parent
435da1f849
commit
71585f9894
1 changed files with 1 additions and 1 deletions
|
|
@ -793,7 +793,7 @@ struct Curl_addrinfo *Curl_async_getaddrinfo(struct Curl_easy *data,
|
|||
/* The stack seems to be IPv6-enabled */
|
||||
/* areschannel is already setup in the Curl_open() function */
|
||||
CURL_TRC_DNS(data, "asyn-ares: fire off query for A");
|
||||
ares_gethostbyname(ares->channel, hostname, PF_INET,
|
||||
ares_gethostbyname(ares->channel, data->state.async.hostname, PF_INET,
|
||||
async_ares_hostbyname_cb, data);
|
||||
CURL_TRC_DNS(data, "asyn-ares: fire off query for AAAA");
|
||||
ares->num_pending = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue