]> git.ipfire.org Git - thirdparty/openvpn.git/commit
wintun: upgrade error message in case of ring registration failure
authorSimon Rozman <simon@rozman.si>
Wed, 5 Feb 2020 18:38:41 +0000 (19:38 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 10 Mar 2020 07:58:17 +0000 (08:58 +0100)
commit089fbe653c3a8efd6dac8cc84448ccbe1d3aa887
treeb23af30eda5677c2c169e6313d622ba0ef8a0018
parent57fe5a263b5a9f48d5c318498352fea7e8ac9908
wintun: upgrade error message in case of ring registration failure

Rather than have the Interactive Service return a custom 0x20000004
(ERROR_REGISTER_RING_BUFFERS) error, return the true GetLastError() code
that the TUN_IOCTL_REGISTER_RINGS provides.

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