From: Daniel Stenberg Date: Thu, 20 Feb 2025 07:31:33 +0000 (+0100) Subject: httpsrr: fix the HTTPS-RR threaded-resolver build combo X-Git-Tag: curl-8_13_0~420 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c64304e111d1d6827355487d0b1061d899573e38;p=thirdparty%2Fcurl.git httpsrr: fix the HTTPS-RR threaded-resolver build combo Reported-by: Viktor Szakats Fixes #16399 Closes #16404 --- 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;