diff --git a/lib/dns/zone.c b/lib/dns/zone.c index c2e1dafd2b..20d31386f0 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -13875,7 +13875,7 @@ setmodtime(dns_zone_t *zone, isc_time_t *expiretime) { } if (result == ISC_R_SUCCESS && !DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDDUMP) && - !DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDDUMP)) + !DNS_ZONE_FLAG(zone, DNS_ZONEFLG_DUMPING)) { result = isc_file_settime(zone->masterfile, &when); } else if (result != ISC_R_SUCCESS) {