]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Remove null check after checking for checking for did_open_tun
authorArne Schwabe <arne@rfc2549.org>
Wed, 25 Sep 2024 15:11:04 +0000 (17:11 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 25 Sep 2024 16:49:15 +0000 (18:49 +0200)
commita8cc97f94f3e7bb52270ca2acf89804093535839
tree1b6141b3b6263bebfe2c7846d70509deb00894a3
parentf77f298979851687ab8fe3948b82cfac27c95cf8
Remove null check after checking for checking for did_open_tun

If we indicate that the tun device has been opened the c1.tuntap struct
is guaranteed to be defined. This extra null check is something that
Coverity flags as we access a do a null check after already accessing fields
of tuntap

Change-Id: I9966636163c7dfa208d26f1cadbf5b81937f3a34
Signed-off-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240925151104.13036-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29447.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c