]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Set DCO_NOT_INSTALLED also for keys not in the get_key_scan range
authorArne Schwabe <arne@rfc2549.org>
Tue, 13 Dec 2022 22:54:30 +0000 (23:54 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 14 Dec 2022 08:01:57 +0000 (09:01 +0100)
commit4cf7409e82580f2890c391372d60ed713ba4650c
tree80f62be5c1f3bb73cc7349f941e003e05033e113
parent419051c96e9fb1f3202fd67733aa3b6a4bbc3181
Set DCO_NOT_INSTALLED also for keys not in the get_key_scan range

We have 6 key slots but normally only consider 3 of them to be
active/valid keys. Especially the secondary key of TM_LAME_DUCK can
in rare corner cases have a key that is still installed in the kernel.

While this should not cause any issues since I do not see way for this
key to become active ever again, it is better to keep the state correctly.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20221213225430.1892940-3-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25681.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco.c