]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Move restoring pre pull options to initialising of c2 context
authorArne Schwabe <arne@rfc2549.org>
Wed, 17 Mar 2021 16:00:36 +0000 (17:00 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 23 Mar 2021 08:55:43 +0000 (09:55 +0100)
commit528a78fb144ff6a3d5865c871a402ba98fdfe21e
treee8525df52d7644231bed9925ffa147551586afbd
parent1e938c50930f29124909e120a29fb116d4c46576
Move restoring pre pull options to initialising of c2 context

We currently delay restoring these options until we actually must
restore them. Since there is no reason to do so apart from the very
minor saving to not have to execute that code when a connection fails,
move them it into the general context_2 initialisation.

Patch V2: rebase on master.

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