]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix CID 544147
authorMatthijs Mekking <matthijs@isc.org>
Wed, 12 Mar 2025 15:39:36 +0000 (16:39 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 12 Mar 2025 15:39:36 +0000 (16:39 +0100)
Assigning value "NULL" to "newstr", but that stored value is overwritten
before it can be used.

Setting "newstr" to NULL does not have any effect, so the line can
safely be removed.

bin/named/controlconf.c

index 5f792d76c20e2ece6387ededf5f6c1b90e91664b..d01a91a8b155a6bda6fe460fdc219dda20e62d8c 100644 (file)
@@ -736,7 +736,6 @@ controlkeylist_fromcfg(const cfg_obj_t *keylist, isc_mem_t *mctx,
                key->secret.length = 0;
                ISC_LINK_INIT(key, link);
                ISC_LIST_APPEND(*keyids, key, link);
-               newstr = NULL;
        }
 }