]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Remove did_open_context, defined and connection_established_flag
authorArne Schwabe <arne@rfc2549.org>
Fri, 3 Jul 2020 09:55:06 +0000 (11:55 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 3 Jul 2020 14:38:59 +0000 (16:38 +0200)
commitc252dcc073155567c1982611ec6f065342909287
tree3a97d0c9f4108351ec8649fc83abd11bd075460f
parent182a2fdd91c5d7a0f6e051182e833f2c7f460cb3
Remove did_open_context, defined and connection_established_flag

multi_instance->defined is not used anywhere.

did_open_context is always set to true when a context is created in
multi_create_instance, so checking it for true is always true.

context_auth is also always set to CAS_PENDING in multi_create_instance.

connection_established_flag is only set to true if context_auth
is changed from CAS_PENDING to one another state, so we can also check
for cas_context != CAS_PENDING.

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