]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco-freebsd: fix peer stats storage on client instances
authorRalf Lici <ralf@mandelbit.com>
Tue, 28 Oct 2025 11:33:05 +0000 (12:33 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Oct 2025 11:43:08 +0000 (12:43 +0100)
commitdc6b75788c626add84384ac121e11b65f9e02a6a
tree4d5a9d684f2e93d1f7ded6d4d57f7cf03addf67c
parent18309ff64833523c1ad19e7d56d6f756b53966af
dco-freebsd: fix peer stats storage on client instances

Commit bf01a96 introduced a bug in the dco-freebsd path by attempting to
store peer statistics in a structure that only exists on server
instances. This leads to a SIGSEGV on non-server instances due to a NULL
multi_context pointer.

Resolve this by checking what mode the current instance is running in
and storing peer stats accordingly.

Fixes: https://github.com/OpenVPN/openvpn/issues/875
Change-Id: I92b5f3996f2a2180fa5e94719603078c1fc2f7f6
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1290
Message-Id: <20251028113310.19921-1-gert@greenie.muc.de>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_freebsd.c