]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix Coverity issue 640332/640331
authorMatthijs Mekking <matthijs@isc.org>
Wed, 31 Dec 2025 12:57:58 +0000 (13:57 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Fri, 2 Jan 2026 08:12:01 +0000 (08:12 +0000)
The `notifytype = cfg_obj_asboolean(obj);` was left in place
erroneously in commit 52c940551db23ac1613d1a0905f06ac65ec9200e.

See https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/11384#note_628991
for background discussion.

bin/named/zoneconf.c

index f3799dd14d34e213704df6b3f0f2102b7bbd89fe..0e422d33ed280126a5b5184bf434d1f43dbd336e 100644 (file)
@@ -1297,7 +1297,6 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
                        } else {
                                notifytype = dns_notifytype_no;
                        }
-                       notifytype = cfg_obj_asboolean(obj);
                } else {
                        const char *str = cfg_obj_asstring(obj);
                        if (strcasecmp(str, "explicit") == 0) {