]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
DNS_ZONEFLAG_NOIXFR should be DNS_ZONEFLG_NOIXFR
authorMark Andrews <marka@isc.org>
Thu, 22 Oct 2020 04:03:59 +0000 (15:03 +1100)
committerMark Andrews <marka@isc.org>
Fri, 23 Oct 2020 13:29:07 +0000 (00:29 +1100)
(cherry picked from commit 3a044444bd5dcb0d3e3ba03fcfba8860ba5a1516)

lib/dns/zone.c

index 6f40ebd636baf5e296b60d2da403bad690a2a567..d1dbad78a076db21d8a708a0a2e4248015444891 100644 (file)
@@ -488,7 +488,7 @@ struct dns_zone {
 #define DNS_ZONEFLG_DIALNOTIFY 0x00020000U
 #define DNS_ZONEFLG_DIALREFRESH        0x00040000U
 #define DNS_ZONEFLG_SHUTDOWN   0x00080000U
-#define DNS_ZONEFLAG_NOIXFR    0x00100000U     /*%< IXFR failed, force AXFR */
+#define DNS_ZONEFLG_NOIXFR     0x00100000U     /*%< IXFR failed, force AXFR */
 #define DNS_ZONEFLG_FLUSH      0x00200000U
 #define DNS_ZONEFLG_NOEDNS     0x00400000U
 #define DNS_ZONEFLG_USEALTXFRSRC 0x00800000U
@@ -15642,7 +15642,7 @@ zone_xfrdone(dns_zone_t *zone, isc_result_t result) {
 
        case DNS_R_BADIXFR:
                /* Force retry with AXFR. */
-               DNS_ZONE_SETFLAG(zone, DNS_ZONEFLAG_NOIXFR);
+               DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_NOIXFR);
                goto same_master;
 
        case DNS_R_TOOMANYRECORDS:
@@ -15970,13 +15970,13 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
                             "forced reload, requesting AXFR of "
                             "initial version from %s", master);
                xfrtype = dns_rdatatype_axfr;
-       } else if (DNS_ZONE_FLAG(zone, DNS_ZONEFLAG_NOIXFR)) {
+       } else if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NOIXFR)) {
                dns_zone_log(zone, ISC_LOG_DEBUG(1),
                             "retrying with AXFR from %s due to "
                             "previous IXFR failure", master);
                xfrtype = dns_rdatatype_axfr;
                LOCK_ZONE(zone);
-               DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLAG_NOIXFR);
+               DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_NOIXFR);
                UNLOCK_ZONE(zone);
        } else {
                bool use_ixfr = true;