]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: perform pull options check only if we pulled any option
authorAntonio Quartulli <a@unstable.cc>
Fri, 5 Aug 2022 15:08:37 +0000 (17:08 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 6 Aug 2022 10:26:17 +0000 (12:26 +0200)
commitf9ef554a5bda5c354e59261f9dbf6519e2815388
treed1281bc0bea151c834acc21dd98cf57221f85dc8
parenta5b4bad46978a01162fb820ea25594d6333aa9db
dco: perform pull options check only if we pulled any option

The do_deferred_options() function is invoked also on the server side in
order to process all negotiated bits.

However, in this case we should not perform any pull options check, as
it's required only on the client side.

Move check within the "if (options.pull)" block to ensure we perform the
check only when required.

Reported-By: Gert Doering <gert@greenie.muc.de>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220805150837.8169-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24824.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c