From be8d4578da9b34df38aab3bb8eaaa3c3f31bc8a2 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Sat, 20 May 2000 21:24:41 +0000 Subject: [PATCH] zone_xferdone() assigned the updated zone expiry time to the wrong variable zone->expire instead of zone->expiretime. This left zone->expiretime with a value of zero, causing zone_settimer() to get horribly confused and set the timer to the inactive state (!). This in turn caused notify-driven refreshes (and probably other timer-scheduled events, too) to never happen. --- lib/dns/zone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 8126d9aa3f..c6cabc9328 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: zone.c,v 1.120 2000/05/20 01:32:46 explorer Exp $ */ +/* $Id: zone.c,v 1.121 2000/05/20 21:24:41 gson Exp $ */ #include @@ -3240,12 +3240,12 @@ zone_xfrdone(dns_zone_t *zone, isc_result_t result) { if (DNS_ZONE_FLAG(zone, DNS_ZONE_F_NEEDREFRESH)) { zone->flags &= ~DNS_ZONE_F_NEEDREFRESH; zone->refreshtime = now; - zone->expire = now + zone->expire; + zone->expiretime = now + zone->expire; } else { zone->refreshtime = now + zone->refresh; - zone->expire = now + zone->expire; + zone->expiretime = now + zone->expire; } - + break; default: