mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
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.
This commit is contained in:
parent
d1eee46938
commit
be8d4578da
@ -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 <config.h>
|
||||
|
||||
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user