From 3c21232b995574138e9006dd59cec00faf699ed1 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 26 Jun 2017 14:01:06 +0300 Subject: [PATCH] lua-auth4: updatePolicy should default to accept when not present --- pdns/lua-auth4.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/lua-auth4.cc b/pdns/lua-auth4.cc index b1f09ccfda..fba1100f22 100644 --- a/pdns/lua-auth4.cc +++ b/pdns/lua-auth4.cc @@ -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(); -- 2.47.2