From: Jay Satiro Date: Tue, 26 Jan 2021 23:57:43 +0000 (-0500) Subject: asyn-thread: fix build for when getaddrinfo missing X-Git-Tag: curl-7_75_0~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44c9e18e5fdcc9367c5d04c762d2082382ab5f1e;p=thirdparty%2Fcurl.git asyn-thread: fix build for when getaddrinfo missing This is a follow-up to 8315343 which several days ago moved the resolver pointer into the async struct but did not update the code that uses it when getaddrinfo is not present. Closes https://github.com/curl/curl/pull/6536 --- diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 3399b1a256..9fcbc3c1fd 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -696,7 +696,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct Curl_easy *data, int port, int *waitp) { - struct resdata *reslv = (struct resdata *)data->state.resolver; + struct resdata *reslv = (struct resdata *)data->state.async.resolver; *waitp = 0; /* default to synchronous response */