]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-ares: use the correct port number
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Feb 2025 20:54:14 +0000 (21:54 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Feb 2025 21:18:43 +0000 (22:18 +0100)
Only triggers with old c-ares versions.

Follow-up to 8ded8e5f3f4b6586

Closes #16511

lib/asyn-ares.c

index 3a813fc983f55556d2182429a87868d376ca1de5..b530c4a0823fe7e9e7dd74a5319c749cbf0cbab4 100644 (file)
@@ -592,7 +592,7 @@ static void query_completed_cb(void *arg,  /* (struct connectdata *) */
   res->num_pending--;
 
   if(CURL_ASYNC_SUCCESS == status) {
-    struct Curl_addrinfo *ai = Curl_he2ai(hostent, data->conn->localport);
+    struct Curl_addrinfo *ai = Curl_he2ai(hostent, data->conn->remote_port);
     if(ai) {
       compound_results(res, ai);
     }