aboutsummaryrefslogtreecommitdiffstats
path: root/wintun.c
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-06-13 21:33:36 +0200
committerSimon Rozman <simon@rozman.si>2019-06-20 11:54:57 +0200
commit54ee02ae34b50eac0b9615439c0294df452d0e64 (patch)
treea8d392e60b32f0779990cdb91e345fabd0491f67 /wintun.c
parentCleanup ref-counting overflow asserts (diff)
downloadwintun-54ee02ae34b50eac0b9615439c0294df452d0e64.tar.xz
wintun-54ee02ae34b50eac0b9615439c0294df452d0e64.zip
Fix the cleanup order in TunDispatchWrite()
Signed-off-by: Simon Rozman <simon@rozman.si>
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 5343c0b..2be239d 100644
--- a/wintun.c
+++ b/wintun.c
@@ -765,8 +765,8 @@ cleanup_nbl_queues:
}
cleanup_ExReleaseSpinLockShared:
ExReleaseSpinLockShared(&ctx->TransitionLock, irql);
- TunCompletePause(ctx, TRUE);
TunCompleteRequest(ctx, Irp, status, IO_NO_INCREMENT);
+ TunCompletePause(ctx, TRUE);
return status;
}