]> 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:26:02 +0000 (12:26 +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.

lib/dns/zone.c

index c2e1dafd2b0d77a053cb0cc3ec094b4593964816..20d31386f08c6daa073b823cc1617897ce10da3b 100644 (file)
@@ -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) {