]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Call set_resigntime() in receive_secure_serial()
authorMark Andrews <marka@isc.org>
Thu, 27 Feb 2020 06:35:18 +0000 (17:35 +1100)
committerMark Andrews <marka@isc.org>
Tue, 3 Mar 2020 04:26:27 +0000 (15:26 +1100)
With RRSIG records no longer being signed with the full
sig-validity-interval we need to ensure the zone->resigntime
as it may need to be set to a earlier time.

lib/dns/zone.c

index 2009b9228b006e124cb5185a40e070175ec8f1ac..baddd91a584dbeb7441501325d78e0550fcb0e79 100644 (file)
@@ -15630,6 +15630,11 @@ nextevent:
        zone->sourceserialset = true;
        zone_needdump(zone, DNS_DUMP_DELAY);
 
+       /*
+        * Set resign time to make sure it is set to the earliest
+        * signature expiration.
+        */
+       set_resigntime(zone);
        TIME_NOW(&timenow);
        zone_settimer(zone, &timenow);
        UNLOCK_ZONE(zone);