]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix bug in keymgr_key_has_successor
authorMatthijs Mekking <matthijs@isc.org>
Thu, 14 May 2020 13:06:54 +0000 (15:06 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 2 Jun 2020 08:00:51 +0000 (10:00 +0200)
commit0d578097ef528b0eb8119c1a19d1fb7dccbb18b1
tree083817810b2f65fca00ca8b9b90c769b9098b318
parentab036232f04c0a31cd8c428d32107fd81bc70032
Fix bug in keymgr_key_has_successor

The logic in `keymgr_key_has_successor(key, keyring)` is flawed, it
returns true if there is any key in the keyring that has a successor,
while what we really want here is to make sure that the given key
has a successor in the given keyring.

Rather than relying on `keymgr_key_exists_with_state`, walk the
list of keys in the keyring and check if the key is a successor of
the given predecessor key.
CHANGES
bin/tests/system/kasp/tests.sh
doc/notes/notes-current.rst
lib/dns/keymgr.c