asyn: bring back port to the Curl_async struct

To make sure we store and use the correct port used for this particular
lookup.

Partial revert of 8ded8e5f3f

Fixes #16531
Reported-by: Jay Satiro
Closes #16532
This commit is contained in:
Daniel Stenberg 2025-03-01 18:22:59 +01:00
parent 5f72a69076
commit 2633961d56
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 5 additions and 3 deletions

View file

@ -436,6 +436,7 @@ static bool init_resolve_thread(struct Curl_easy *data,
int err = ENOMEM;
struct Curl_async *async = &data->state.async;
async->port = port;
async->done = FALSE;
async->dns = NULL;
td->thread_hnd = curl_thread_t_null;