From 0a7ef1b86ba9edc3caa4ead2c1ae6dfc1ecbe92f Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 31 Mar 2017 17:41:09 +0200 Subject: [PATCH] rec: Add missing `DNSFilterEngine::clear()` method implementation --- pdns/filterpo.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pdns/filterpo.cc b/pdns/filterpo.cc index 88e5320a8..ab9547b95 100644 --- a/pdns/filterpo.cc +++ b/pdns/filterpo.cc @@ -159,6 +159,16 @@ void DNSFilterEngine::clear(size_t zone) z.qpolName.clear(); } +void DNSFilterEngine::clear() +{ + for(auto& z : d_zones) { + z.qpolAddr.clear(); + z.postpolAddr.clear(); + z.propolName.clear(); + z.qpolName.clear(); + } +} + void DNSFilterEngine::addClientTrigger(const Netmask& nm, Policy pol, size_t zone) { assureZones(zone); -- 2.40.0