]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix sequence of events for async plugin v1 handler.
authorGert Doering <gert@greenie.muc.de>
Mon, 27 Jul 2020 18:34:35 +0000 (20:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Jul 2020 07:45:10 +0000 (09:45 +0200)
commit08f3c1cab7367fc8447001db34fd9627d60ba2b2
treeb380708dd698c0a26d9204be0d9c63971176db74
parent0a7af784c9a1534b13092c0504df679365a48ddb
Fix sequence of events for async plugin v1 handler.

If multi_client_connect_call_plugin_v1() goes to "deferred mode",
*and* there is no OPENVPN_CLIENT_CONNECT_DEFER handler, we
would read the "client specific options" file after every
(succeeded-because-not-present) call to plugin_call().

Move this to "after we have checked the deferred-cc file, and we
know for sure that we have CC_RET_SUCCEEDED".

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