]> granicus.if.org Git - pdns/commitdiff
auth: make sure the RRSIG freshness check is using the right zone
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 9 Jul 2019 16:07:25 +0000 (18:07 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 17 Jul 2019 16:40:13 +0000 (18:40 +0200)
pdns/slavecommunicator.cc

index 53b66197c320521a7378cc98ce37bcf422c84ae5..48539485f0d86abdda98a2a24bacb3f47abb7e25 100644 (file)
@@ -947,7 +947,7 @@ void CommunicatorClass::slaveRefresh(PacketHandler *P)
     else if(hasSOA && theirserial == ourserial) {
       uint32_t maxExpire=0, maxInception=0;
       if(dk.isPresigned(di.zone)) {
-        B->lookup(QType(QType::RRSIG), di.zone); // can't use DK before we are done with this lookup!
+        B->lookup(QType(QType::RRSIG), di.zone, nullptr, di.id); // can't use DK before we are done with this lookup!
         DNSZoneRecord zr;
         while(B->get(zr)) {
           auto rrsig = getRR<RRSIGRecordContent>(zr.dr);