]> granicus.if.org Git - pdns/commitdiff
rec: Add missing `DNSFilterEngine::clear()` method implementation
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 31 Mar 2017 15:41:09 +0000 (17:41 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 4 Apr 2017 15:11:25 +0000 (17:11 +0200)
pdns/filterpo.cc

index 88e5320a8206e8adc62d066da9d4b3b101078ae5..ab9547b95f5c6192854fd0d4096239f430b71c0b 100644 (file)
@@ -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);