From: Kees Monshouwer Date: Sun, 4 Jun 2017 11:31:54 +0000 (+0200) Subject: auth: make sure Lua axfrfilter() does not insert out of zone data X-Git-Tag: auth-4.0.4-rc1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53be802dbe13a954104dbe3e5b610d27e986ad41;p=thirdparty%2Fpdns.git auth: make sure Lua axfrfilter() does not insert out of zone data --- diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 72f7168870..0f854d27ea 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -262,6 +262,10 @@ vector doAxfr(const ComboAddress& raddr, const DNSName& domai } for(DNSResourceRecord& rr : out) { + if(!rr.qname.isPartOf(domain)) { + L<qname<<"'|"<qtype.getName()<<" during AXFR of zone '"<