]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix wrong parameter 9515/head
authorOtto Moerbeek <otto@drijf.net>
Fri, 25 Sep 2020 11:46:36 +0000 (13:46 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Sep 2020 11:46:36 +0000 (13:46 +0200)
Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
pdns/ws-recursor.cc

index 9d64d125104874b1d4b7aa36751d43c4792edd1d..f24faad64492862677a35d857bd23ec24f6d588d 100644 (file)
@@ -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<uint64_t>([=]{return pleaseWipePacketCache(canon, subtree, 0xffff);});
   count += g_negCache->wipe(canon, subtree);
   resp->setBody(Json::object {