]> granicus.if.org Git - pdns/commitdiff
Fully initialize Policy
authorAki Tuomi <cmouse@desteem.org>
Tue, 22 Dec 2015 16:13:35 +0000 (18:13 +0200)
committerAki Tuomi <cmouse@desteem.org>
Fri, 8 Jan 2016 06:57:12 +0000 (08:57 +0200)
pdns/rpzloader.cc

index 0784b1c32e685f41f7c28eb3b589a8854c6337f5..c4243077b5e6d79e1dd48c4cc392aad3b326ba64 100644 (file)
@@ -21,7 +21,7 @@ void RPZRecordToPolicy(const DNSRecord& dr, DNSFilterEngine& target, bool addOrR
   static const DNSName rpzClientIP("rpz-client-ip"), rpzIP("rpz-ip"),
     rpzNSDname("rpz-nsdname"), rpzNSIP("rpz-nsip.");
 
-  DNSFilterEngine::Policy pol{DNSFilterEngine::PolicyKind::NoAction};
+  DNSFilterEngine::Policy pol{DNSFilterEngine::PolicyKind::NoAction, nullptr, 0};
 
   if(dr.d_type == QType::CNAME) {
     auto target=std::dynamic_pointer_cast<CNAMERecordContent>(dr.d_content)->getTarget();