From: Kees Monshouwer Date: Sun, 4 Jun 2017 11:27:07 +0000 (+0200) Subject: auth: make sure upcase qnames do not confuse rectify X-Git-Tag: rec-4.1.0-alpha1~91^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf260dd777a99f85b9b5c4d597f13779d46ab0d;p=thirdparty%2Fpdns.git auth: make sure upcase qnames do not confuse rectify --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index fef883b316..852eb53e98 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -160,6 +160,7 @@ bool rectifyZone(DNSSECKeeper& dk, const DNSName& zone) vector 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 c873499c2b..58e1622e02 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -771,6 +771,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr q, int ou zrrs.push_back(synth_zrr); while(sd.db->get(zrr)) { + zrr.dr.d_name.makeUsLowerCase(); if(zrr.dr.d_name.isPartOf(target)) { if (zrr.dr.d_type == QType::ALIAS && ::arg().mustDo("outgoing-axfr-expand-alias")) { vector ips;