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: rec-4.1.0-alpha1~91^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5377%2Fhead;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 f89313d6da..ff492c377b 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -264,6 +264,10 @@ static vector doAxfr(const ComboAddress& raddr, const DNSName } for(DNSResourceRecord& rr : out) { + if(!rr.qname.isPartOf(domain)) { + L<qname<<"'|"<qtype.getName()<<" during AXFR of zone '"<