]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: make sure upcase qnames do not confuse rectify
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 4 Jun 2017 11:27:07 +0000 (13:27 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 12 Jun 2017 19:21:15 +0000 (21:21 +0200)
pdns/pdnsutil.cc
pdns/tcpreceiver.cc

index fef883b316fd09a1f90e434d79570deb4d99b82a..852eb53e98a590bfed035971f7f3e6232c6a2a13 100644 (file)
@@ -160,6 +160,7 @@ bool rectifyZone(DNSSECKeeper& dk, const DNSName& zone)
   vector<DNSResourceRecord> rrs;
 
   while(sd.db->get(rr)) {
+    rr.qname.makeUsLowerCase();
     if (rr.qtype.getCode())
     {
       rrs.push_back(rr);
index c873499c2bcbb71dbc8cf441787e82558b5f3310..58e1622e020e7221268dcd7d8c00b46028d24cf8 100644 (file)
@@ -771,6 +771,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr<DNSPacket> 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<DNSZoneRecord> ips;