From c64304e111d1d6827355487d0b1061d899573e38 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 20 Feb 2025 08:31:33 +0100 Subject: [PATCH] httpsrr: fix the HTTPS-RR threaded-resolver build combo Reported-by: Viktor Szakats Fixes #16399 Closes #16404 --- lib/asyn.h | 1 + lib/httpsrr.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/asyn.h b/lib/asyn.h index d70bc86aaf..b963da533c 100644 --- a/lib/asyn.h +++ b/lib/asyn.h @@ -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; }; diff --git a/lib/httpsrr.c b/lib/httpsrr.c index 7a2ecdbe4d..9a0bc827ef 100644 --- a/lib/httpsrr.c +++ b/lib/httpsrr.c @@ -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; -- 2.47.3