]> 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>
Fri, 20 Sep 2019 12:42:27 +0000 (14:42 +0200)
pdns/slavecommunicator.cc

index cc44b0d88115ad27679d9ef850694ffba1eac46b..1b7c126c1a306f06b758a0f1b6b475a07069ca9b 100644 (file)
@@ -960,7 +960,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, -1); // can't use DK before we are done with this lookup!
+        B->lookup(QType(QType::RRSIG), di.zone, 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);