mirror of
https://github.com/curl/curl.git
synced 2026-04-18 20:11:42 +03:00
parent
655a4e83b7
commit
6bc65a444b
2 changed files with 2 additions and 0 deletions
|
|
@ -843,6 +843,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct Curl_easy *data,
|
|||
{
|
||||
res->num_pending++; /* one more */
|
||||
memset(&res->hinfo, 0, sizeof(struct Curl_https_rrinfo));
|
||||
res->hinfo->port = -1;
|
||||
ares_query_dnsrec((ares_channel)data->state.async.resolver,
|
||||
hostname, ARES_CLASS_IN,
|
||||
ARES_REC_TYPE_HTTPS,
|
||||
|
|
|
|||
|
|
@ -412,6 +412,7 @@ static CURLcode resolve_httpsrr(struct Curl_easy *data,
|
|||
return CURLE_FAILED_INIT;
|
||||
|
||||
memset(&async->thdata.hinfo, 0, sizeof(struct Curl_https_rrinfo));
|
||||
async->thdata.hinfo.port = -1;
|
||||
ares_query_dnsrec(async->thdata.channel,
|
||||
async->hostname, ARES_CLASS_IN,
|
||||
ARES_REC_TYPE_HTTPS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue