From: Daniel Stenberg Date: Thu, 27 Feb 2025 20:54:14 +0000 (+0100) Subject: asyn-ares: use the correct port number X-Git-Tag: curl-8_13_0~323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=953cd694dcec9f99b8f6c8b50cab099b28196644;p=thirdparty%2Fcurl.git asyn-ares: use the correct port number Only triggers with old c-ares versions. Follow-up to 8ded8e5f3f4b6586 Closes #16511 --- diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 3a813fc983..b530c4a082 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -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); }