]> 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 05:10:45 +0000 (16:10 +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.

(cherry picked from commit 5d1611afdc61ea8f19ceecc3e88cdb2296ec3914)

lib/dns/zone.c

index e1a4d087cb374777a0c11a739e469c19a65d178c..2123551c6017fec6dce6d9ccd8da68a675cd0d1f 100644 (file)
@@ -15594,6 +15594,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);