]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
also insist that keycount == dscpcount
authorMark Andrews <marka@isc.org>
Fri, 6 Sep 2019 01:32:32 +0000 (11:32 +1000)
committerMark Andrews <marka@isc.org>
Fri, 6 Sep 2019 06:44:05 +0000 (16:44 +1000)
(cherry picked from commit dbdd19853e7308df6d338d46d87b6af4312f4e74)

bin/named/config.c

index 078a3e9362340e60952b961ee93311241bb3cd97..2cb1d615b00e8b8898eaa28a0f54220b4ae959b4 100644 (file)
@@ -884,6 +884,7 @@ named_config_getipandkeylist(const cfg_obj_t *config, const cfg_obj_t *list,
                isc_mem_put(mctx, stack, stackcount * sizeof(*stack));
 
        INSIST(keycount == addrcount);
+       INSIST(keycount == dscpcount);
 
        ipkl->addrs = addrs;
        ipkl->dscps = dscps;