From: Kees Monshouwer Date: Sun, 4 Jun 2017 11:27:07 +0000 (+0200) Subject: auth: make sure upcase qnames do not confuse rectify or axfr X-Git-Tag: auth-4.0.4-rc1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=872912d6ac97d15dc6fe12ef94b17ff6c4b9fce1;p=thirdparty%2Fpdns.git auth: make sure upcase qnames do not confuse rectify or axfr --- diff --git a/pdns/lua-auth.cc b/pdns/lua-auth.cc index 18dfd7a306..40f09656d1 100644 --- a/pdns/lua-auth.cc +++ b/pdns/lua-auth.cc @@ -149,6 +149,7 @@ bool AuthLua::axfrfilter(const ComboAddress& remote, const DNSName& zone, const lua_pop(d_lua, 1); // table // cerr<<"Adding content '"< rrs; while(sd.db->get(rr)) { + rr.qname.makeUsLowerCase(); if (rr.qtype.getCode()) { rrs.push_back(rr); diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 837aa86cd7..34339835fc 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -751,6 +751,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr q, int ou rrs.push_back(rr); while(sd.db->get(rr)) { + rr.qname.makeUsLowerCase(); if(rr.qname.isPartOf(target)) { if (rr.qtype.getCode() == QType::ALIAS && ::arg().mustDo("outgoing-axfr-expand-alias")) { vector ips;