]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun: extract close_tun_handle into its own fucntion and print correct type
authorArne Schwabe <arne@rfc2549.org>
Fri, 24 Jun 2022 08:38:01 +0000 (10:38 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 19 Jul 2022 20:05:00 +0000 (22:05 +0200)
commitabceec65daed9aa6359314a0243246acc1cc25bf
tree36192640c396f1dfaa08109eb34775d7422edd01
parentd2b0c011300c66055764b8f43c272342d2b82584
tun: extract close_tun_handle into its own fucntion and print correct type

This moves closing the tun handle into its own function and also prints
the adapter type we are operating on, instead hardcoding it to
tap-windows.

While at it, set the handle to NULL after closing, to prevent a double
close due to multiple invocations of this helper.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20220624083809.23487-18-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24527.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c