asyn-ares: fix the port assign

Follow-up to 6bc65a444b
Fixes #16414
Closes #16415
This commit is contained in:
Daniel Stenberg 2025-02-21 08:27:03 +01:00
parent d1fc1c4a85
commit fb61d76580
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -843,7 +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;
res->hinfo.port = -1;
ares_query_dnsrec((ares_channel)data->state.async.resolver,
hostname, ARES_CLASS_IN,
ARES_REC_TYPE_HTTPS,