mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +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:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -3240,10 +3240,10 @@ zone_xfrdone(dns_zone_t *zone, isc_result_t result) {
|
|||||||
if (DNS_ZONE_FLAG(zone, DNS_ZONE_F_NEEDREFRESH)) {
|
if (DNS_ZONE_FLAG(zone, DNS_ZONE_F_NEEDREFRESH)) {
|
||||||
zone->flags &= ~DNS_ZONE_F_NEEDREFRESH;
|
zone->flags &= ~DNS_ZONE_F_NEEDREFRESH;
|
||||||
zone->refreshtime = now;
|
zone->refreshtime = now;
|
||||||
zone->expire = now + zone->expire;
|
zone->expiretime = now + zone->expire;
|
||||||
} else {
|
} else {
|
||||||
zone->refreshtime = now + zone->refresh;
|
zone->refreshtime = now + zone->refresh;
|
||||||
zone->expire = now + zone->expire;
|
zone->expiretime = now + zone->expire;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user