]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix triggering assertion of ks->authenticated after tls_deauthenticate
authorArne Schwabe <arne@rfc2549.org>
Tue, 7 Dec 2021 17:01:54 +0000 (18:01 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 14 Dec 2021 07:24:46 +0000 (08:24 +0100)
commitce9c1990ba89ebb1335a8093e0889f2df71a6cfe
tree563311d043aaa57e0c8ff6d93a4f830cec31eeed
parent053de4db59a2d99eed8a07877ea321be4065ba26
Fix triggering assertion of ks->authenticated after tls_deauthenticate

When tls_deauthenticate is called (e.g. by management kicking of a client)
the key auth state is changed to KS_AUTH_FALSE while the key state is
still in S_GENERATED_KEYS. This triggers the assertion.

Remove the assertions and instead check that the auth state is KS_AUTH_TRUE

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211207170211.3275837-5-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23340.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c