]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix keymgr key init bug
authorMatthijs Mekking <matthijs@isc.org>
Fri, 26 Feb 2021 08:27:32 +0000 (09:27 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Mon, 22 Mar 2021 08:50:05 +0000 (09:50 +0100)
commit27e7d5f698f3eebc5b1ff26737331cef972873e1
tree64414fe8a81f74cac1808e17241227384a481ea3
parentc40c1ebcb1c17e366a1be9b365a6b4e5d1eb19a3
Fix keymgr key init bug

The 'keymgr_key_init()' function initializes key states if they have
not been set previously. It looks at the key timing metadata and
determines using the given times whether a state should be set to
RUMOURED or OMNIPRESENT.

However, the DNSKEY and ZRRSIG states were mixed up: When looking
at the Activate timing metadata we should set the ZRRSIG state, and
when looking at the Published timing metadata we should set the
DNSKEY state.
lib/dns/keymgr.c