]> git.ipfire.org Git - thirdparty/openvpn.git/commit
sitnl: fix TUN/TAP confusion in error messages
authorAntonio Quartulli <a@unstable.cc>
Sat, 18 Apr 2020 01:31:23 +0000 (03:31 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 19 Apr 2020 09:54:52 +0000 (11:54 +0200)
commitb9ff398884aa4576f2d9f75f2e2b54cd9688d122
treec7e42f5519db935a82645dd7032552fff41fe9d4
parent74fadcf4ebe860c15d12cb4e065c7ca0e0dc4497
sitnl: fix TUN/TAP confusion in error messages

The is_tun_p2p() function can return false for both TAP or TUN
interfaces (under certain conditions), therefore we should not
assume any TUN/TAP type when printing related messages.

Remove reference to TUN/TAP when printing messages under conditions
based on is_tun_p2p().

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200418013123.22551-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19775.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c