]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
lua-auth4: updatePolicy should default to accept when not present
authorAki Tuomi <cmouse@cmouse.fi>
Mon, 26 Jun 2017 11:01:06 +0000 (14:01 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Mon, 18 Dec 2017 10:53:58 +0000 (12:53 +0200)
pdns/lua-auth4.cc

index b1f09ccfdaa30f1e2ec9292158e4832c3a690516..fba1100f22ebf92bbc73e1819a69378c51174a1b 100644 (file)
@@ -136,6 +136,9 @@ bool AuthLua4::axfrfilter(const ComboAddress& remote, const DNSName& zone, const
 
 
 bool AuthLua4::updatePolicy(const DNSName &qname, QType qtype, const DNSName &zonename, DNSPacket *packet) {
+  // default decision is all goes
+  if (d_update_policy == NULL) return true;
+
   UpdatePolicyQuery upq;
   upq.qname = qname;
   upq.qtype = qtype.getCode();