From 55ac6b7394f92cba2e924e0c11ea0ecad8b881af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 20 Oct 2021 13:01:13 +0200 Subject: [PATCH] Add missing DNS_ZONEFLG_DUMPING to setmodtime() It was found, that the original commit adding the setmodtime() was incompletely squashed and there was double check for DNS_ZONEFLG_NEEDDUMP instead of check for DNS_ZONEFLG_NEEDDUMP and DNS_ZONEFLG_DUMPING. Change the duplicate check to DNS_ZONEFLG_DUMPING. --- lib/dns/zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {