Skip to content
Snippets Groups Projects
Unverified Commit 1f9f7259 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

httpsrr: fix the HTTPS-RR threaded-resolver build combo

Reported-by: Viktor Szakats
Fixes #16399
parent ee3f6576
No related merge requests found
......@@ -64,6 +64,7 @@ struct thread_data {
#if defined(USE_HTTPSRR) && defined(USE_ARES)
struct Curl_https_rrinfo hinfo;
ares_channel channel;
int num_pending; /* number of outstanding c-ares requests */
#endif
bool init;
};
......
......@@ -187,11 +187,9 @@ void Curl_dnsrec_done_cb(void *arg, ares_status_t status,
struct Curl_easy *data = arg;
CURLcode result = CURLE_OK;
size_t i;
#ifdef CURLRES_ARES
struct thread_data *res = &data->state.async.thdata;
res->num_pending--;
#endif
(void)timeouts;
if((ARES_SUCCESS != status) || !dnsrec)
return;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment