]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add missing DNS_ZONEFLG_DUMPING to setmodtime()
authorOndřej Surý <ondrej@sury.org>
Wed, 20 Oct 2021 11:01:13 +0000 (13:01 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 21 Oct 2021 10:33:24 +0000 (12:33 +0200)
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.

(cherry picked from commit 55ac6b7394f92cba2e924e0c11ea0ecad8b881af)

lib/dns/zone.c

index cbe8457ae7d380642066deaec7f408b6ccae4eef..65a3aacab7b8f6a1871bf647f3d673e20b4500c5 100644 (file)
@@ -13789,7 +13789,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) {