]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun.c: make wintun_register_ring_buffer() non-fatal on failures
authorSimon Rozman <simon@rozman.si>
Fri, 20 Dec 2019 16:11:13 +0000 (17:11 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 22 Dec 2019 19:01:20 +0000 (20:01 +0100)
commit9a8966c2cbe796a51aa971e83850a2de8f4531ec
treebc289033abb9616eef60a69d37364413a74808ae
parent9db385f2d179bbc578112e7526b51d424a62aac5
tun.c: make wintun_register_ring_buffer() non-fatal on failures

Wintun allows multiple handles to be opened on it's NDIS device pipe.
Just by succeeding to open the pipe does not warrant the adapter is
unused.

When iterating for available Wintun adapter, we will need to try
registering ring buffers with each one to actually determine which one
is used and which one is not.

Therefore, a failure to register ring buffers should be detectable, but
not M_FATAL.

Signed-off-by: Simon Rozman <simon@rozman.si>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20191220161117.1434-3-simon@rozman.si>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19283.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c