]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
zone->requeststats_on was not being set at the correct point
authorMark Andrews <marka@isc.org>
Tue, 13 Jul 2021 23:59:47 +0000 (09:59 +1000)
committerMark Andrews <marka@isc.org>
Fri, 16 Jul 2021 03:49:22 +0000 (13:49 +1000)
lib/dns/zone.c

index f1cf499a232fa08869b2c031e90b8ca9e4972e5f..c8d0f74d8498eb76034f5532beddf344292f1310 100644 (file)
@@ -19715,8 +19715,8 @@ dns_zone_setrequeststats(dns_zone_t *zone, isc_stats_t *stats) {
        } else if (!zone->requeststats_on && stats != NULL) {
                if (zone->requeststats == NULL) {
                        isc_stats_attach(stats, &zone->requeststats);
-                       zone->requeststats_on = true;
                }
+               zone->requeststats_on = true;
        }
        UNLOCK_ZONE(zone);
 }