]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add ASSERT to afunix code that dev_node is always set up the way we expect
authorArne Schwabe <arne@rfc2549.org>
Tue, 28 Oct 2025 11:59:47 +0000 (12:59 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Oct 2025 12:05:44 +0000 (13:05 +0100)
commit5bc0eae87ccf1abd6c400cb27d8e51819feb2036
tree4aa6ad3a2fe0d30fdc47bd3b30f50528f5c0d59e
parentdc6b75788c626add84384ac121e11b65f9e02a6a
Add ASSERT to afunix code that dev_node is always set up the way we expect

The calling code only calls tun_afunix_exec_child if is_tun_afunix is true,
which checks that the path is having unix: as prefix.

But since adding an ASSERT here to ensure that it is really the case
does not cost us anything, just add the ASSERT.

Reported-By: Joshua Rogers <contact@joshua.hu>
Found-By: Zeropath
Change-Id: Idbb7bf279eb467fc1d56ab75a50b5eb2c8d0a57e
Signed-off-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1320
Message-Id: <20251028115953.22487-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33934.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun_afunix.c