From: Aki Tuomi Date: Mon, 26 Jun 2017 11:01:06 +0000 (+0300) Subject: lua-auth4: updatePolicy should default to accept when not present X-Git-Tag: dnsdist-1.3.0~186^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c21232b995574138e9006dd59cec00faf699ed1;p=thirdparty%2Fpdns.git lua-auth4: updatePolicy should default to accept when not present --- 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();