]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-ares: fix the port assign
authorDaniel Stenberg <daniel@haxx.se>
Fri, 21 Feb 2025 07:27:03 +0000 (08:27 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Feb 2025 07:37:24 +0000 (08:37 +0100)
Follow-up to 6bc65a444b2e7f1453b0b4
Fixes #16414
Closes #16415

lib/asyn-ares.c

index 3be49d3ac6aabba039e64b9124f02d28de70a106..768d157e13daa1144abfe7a151fe5af32c84db8c 100644 (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,