From: Otto Moerbeek Date: Fri, 25 Sep 2020 11:46:36 +0000 (+0200) Subject: Fix wrong parameter X-Git-Tag: auth-4.4.0-alpha2~66^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9515%2Fhead;p=thirdparty%2Fpdns.git Fix wrong parameter Co-authored-by: Remi Gacogne --- diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 9d64d12510..f24faad644 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -382,7 +382,7 @@ static void apiServerCacheFlush(HttpRequest* req, HttpResponse* resp) { DNSName canon = apiNameToDNSName(req->getvars["domain"]); bool subtree = (req->getvars.count("subtree") > 0 && req->getvars["subtree"].compare("true") == 0); - int count = g_recCache->doWipeCache(canon, true, 0xffff); + int count = g_recCache->doWipeCache(canon, subtree, 0xffff); count += broadcastAccFunction([=]{return pleaseWipePacketCache(canon, subtree, 0xffff);}); count += g_negCache->wipe(canon, subtree); resp->setBody(Json::object {