Commit 55ac6b73 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

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.
parent 57146822
Pipeline #85598 canceled with stages
in 6 minutes and 21 seconds
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment