]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thread: fix build for when getaddrinfo missing
authorJay Satiro <raysatiro@yahoo.com>
Tue, 26 Jan 2021 23:57:43 +0000 (18:57 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 27 Jan 2021 08:26:55 +0000 (03:26 -0500)
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

lib/asyn-thread.c

index 3399b1a2568109b0c996f49a12cbc6d26ceff6af..9fcbc3c1fdddd30e7d3c26df782a438f72d1dbf2 100644 (file)
@@ -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 */