Increment discarded packets properly
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6cc9786b47
commit
96553f4217
4
wintun.c
4
wintun.c
@ -337,10 +337,8 @@ cleanupKeReleaseInStackQueuedSpinLock:
|
||||
KeReleaseInStackQueuedSpinLock(&LockHandle);
|
||||
skipNbl:
|
||||
for (NET_BUFFER_LIST *Nbl = NetBufferLists; Nbl; Nbl = NET_BUFFER_LIST_NEXT_NBL(Nbl))
|
||||
{
|
||||
NET_BUFFER_LIST_STATUS(Nbl) = Status;
|
||||
DiscardedPacketsCount += PacketsCount;
|
||||
}
|
||||
DiscardedPacketsCount += PacketsCount;
|
||||
ExReleaseSpinLockShared(&Ctx->TransitionLock, Irql);
|
||||
NdisMSendNetBufferListsComplete(Ctx->MiniportAdapterHandle, NetBufferLists, 0);
|
||||
updateStatistics:
|
||||
|
Loading…
Reference in New Issue
Block a user