mirror of
https://github.com/curl/curl.git
synced 2026-07-04 09:17:14 +03:00
lib: clear up CURLRES_ASYNCH vs USE_CURL_ASYNC use
CURLRES_ASYNCH - is for when built to use an async name resolver; threaded or c-ares USE_CURL_ASYNC - is for when built to use either an async name resolver OR DoH Reported-by: Lars Karlitski Fixes #16645 Closes #16648
This commit is contained in:
parent
aa8d1d648e
commit
3c2948e0a6
4 changed files with 5 additions and 5 deletions
|
|
@ -747,7 +747,7 @@ enum resolve_t Curl_resolv(struct Curl_easy *data,
|
|||
int st;
|
||||
Curl_set_in_callback(data, TRUE);
|
||||
st = data->set.resolver_start(
|
||||
#ifdef USE_CURL_ASYNC
|
||||
#ifdef CURLRES_ASYNCH
|
||||
data->state.async.resolver,
|
||||
#else
|
||||
NULL,
|
||||
|
|
|
|||
|
|
@ -2087,7 +2087,7 @@ static CURLMcode state_resolving(struct Curl_multi *multi,
|
|||
dns = Curl_fetch_addr(data, hostname, conn->primary.remote_port);
|
||||
|
||||
if(dns) {
|
||||
#ifdef CURLRES_ASYNCH
|
||||
#ifdef USE_CURL_ASYNC
|
||||
data->state.async.dns = dns;
|
||||
data->state.async.done = TRUE;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ static CURLproxycode do_SOCKS4(struct Curl_cfilter *cf,
|
|||
dns = Curl_fetch_addr(data, sx->hostname, conn->primary.remote_port);
|
||||
|
||||
if(dns) {
|
||||
#ifdef CURLRES_ASYNCH
|
||||
#ifdef USE_CURL_ASYNC
|
||||
data->state.async.dns = dns;
|
||||
data->state.async.done = TRUE;
|
||||
#endif
|
||||
|
|
@ -814,7 +814,7 @@ CONNECT_REQ_INIT:
|
|||
dns = Curl_fetch_addr(data, sx->hostname, sx->remote_port);
|
||||
|
||||
if(dns) {
|
||||
#ifdef CURLRES_ASYNCH
|
||||
#ifdef USE_CURL_ASYNC
|
||||
data->state.async.dns = dns;
|
||||
data->state.async.done = TRUE;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -569,9 +569,9 @@ struct Curl_async {
|
|||
struct Curl_dns_entry *dns;
|
||||
#ifdef CURLRES_ASYNCH
|
||||
struct thread_data thdata;
|
||||
#endif
|
||||
void *resolver; /* resolver state, if it is used in the URL state -
|
||||
ares_channel e.g. */
|
||||
#endif
|
||||
int port;
|
||||
BIT(done); /* set TRUE when the lookup is complete */
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue