From: Daniel Stenberg Date: Wed, 16 Apr 2025 14:18:10 +0000 (+0200) Subject: asyn-ares: fix build with old c-ares X-Git-Tag: curl-8_14_0~283 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c6db2d45b28e93de5052901b28521c6407490c85;p=thirdparty%2Fcurl.git asyn-ares: fix build with old c-ares See https://app.circleci.com/pipelines/github/curl/curl/13081/workflows/7d80b69e-9886-4f4c-b467-0fa321a0f8c2/jobs/130479 Closes #17075 --- diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 2fb83eeb10..babae6fb27 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -294,7 +294,7 @@ CURLcode Curl_async_is_resolved(struct Curl_easy *data, leave us with res->num_pending == 0, which is perfect for the next block. */ ares_cancel(ares->channel); - DEBUGASSERT(res->num_pending == 0); + DEBUGASSERT(ares->num_pending == 0); } #endif