aboutsummaryrefslogtreecommitdiffstats
path: root/wintun.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-05 08:49:07 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-05 08:49:07 +0000
commitee3254e46f5aa01b2f62593c8d8bfca21574b508 (patch)
tree8f1625bdf03aa844420df68b6c61a8548f994b6a /wintun.c
parentDo not take extra ActiveNBL when holding TransitionLock (diff)
downloadwintun-ee3254e46f5aa01b2f62593c8d8bfca21574b508.tar.xz
wintun-ee3254e46f5aa01b2f62593c8d8bfca21574b508.zip
Return with proper error status for bad address
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wintun.c')
-rw-r--r--wintun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wintun.c b/wintun.c
index f12e58e..62c1417 100644
--- a/wintun.c
+++ b/wintun.c
@@ -807,7 +807,7 @@ TunDispatchWrite(_Inout_ TUN_CTX *Ctx, _Inout_ IRP *Irp)
LONG *MdlRefcount = (LONG *)BufferStart;
try
{
- Status = STATUS_INSUFFICIENT_RESOURCES;
+ Status = STATUS_INVALID_USER_BUFFER;
ProbeForRead(Irp->UserBuffer, Size, 1);
NdisMoveMemory(BufferStart, Irp->UserBuffer, Size);
}