]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Avoid possible race condition that kill OpenVPN itself
authorArne Schwabe <arne@rfc2549.org>
Mon, 27 Oct 2025 21:33:02 +0000 (22:33 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Oct 2025 09:31:01 +0000 (10:31 +0100)
commit18309ff64833523c1ad19e7d56d6f756b53966af
tree9e5911e9d9e8504f58846fa26a1f674282448e5c
parent87f639c820b8365585fc825ee7ea9cdd86cf88c5
Avoid possible race condition that kill OpenVPN itself

If for whatever reason the child pid is zero, we would kill ourselves
since killing 0 means killing the own process group.

Reported-By: Joshua Rogers <contact@joshua.hu>
Found-By: Zeropath
Change-Id: I7b94de92723f9528b01cb932bb079eedf0f1f272
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/+/1319
Message-Id: <20251027213308.5588-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33910.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun_afunix.c