]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3654. [bug] Address race condition with manual notify requests.
authorMark Andrews <marka@isc.org>
Tue, 24 Sep 2013 23:47:31 +0000 (09:47 +1000)
committerMark Andrews <marka@isc.org>
Tue, 24 Sep 2013 23:47:31 +0000 (09:47 +1000)
                        [RT #34806]

CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 47f2a2b13e51c7ea9d3c20f0c6d7b3dc949863b5..407659b5547e4d8241f55a4ae822419e2eb2ead3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3654.  [bug]           Address race condition with manual notify requests.
+                       [RT #34806]
+
 3653.  [func]          Create delegations for all "children" of empty zones
                        except "forward first". [RT #34826]
 
index 1d8499770ac90ceee2572b16993602036032494e..246540f1e293b8c20386f997cd49869d607fa75f 100644 (file)
@@ -11921,10 +11921,10 @@ zone_settimer(dns_zone_t *zone, isc_time_t *now) {
                            isc_time_compare(&zone->refreshtime, &next) < 0)
                                next = zone->refreshtime;
                }
-               if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED)) {
-                       INSIST(!isc_time_isepoch(&zone->expiretime));
+               if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED) &&
+                   !isc_time_isepoch(&zone->expiretime)) {
                        if (isc_time_isepoch(&next) ||
-                           isc_time_compare(&zone->expiretime, &next) < 0)
+                            isc_time_compare(&zone->expiretime, &next) < 0)
                                next = zone->expiretime;
                }
                if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDDUMP) &&