From 34da2097082c0529f8526dacd11dd4ace785e9cc Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 25 Sep 2013 09:47:31 +1000 Subject: [PATCH] 3654. [bug] Address race condition with manual notify requests. [RT #34806] (cherry picked from commit 5116f25421090dffe637eb8f6cf7b44acd83678b) --- CHANGES | 3 +++ lib/dns/zone.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index f46018f6ac..d1a7334e31 100644 --- 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] diff --git a/lib/dns/zone.c b/lib/dns/zone.c index a8440e78e0..0022c3e7c8 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -11551,10 +11551,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) &&