mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Initialize packets before using them
- Part 2 of 2 svn path=/trunk/; revision=40356
This commit is contained in:
parent
48a474fded
commit
36f48eb147
1 changed files with 3 additions and 0 deletions
|
@ -254,6 +254,8 @@ VOID LanReceiveWorker( PVOID Context ) {
|
|||
Adapter = WorkItem->Adapter;
|
||||
BytesTransferred = WorkItem->BytesTransferred;
|
||||
|
||||
IPInitializePacket(&IPPacket, 0);
|
||||
|
||||
IPPacket.NdisPacket = Packet;
|
||||
|
||||
NdisGetFirstBufferFromPacket(Packet,
|
||||
|
@ -289,6 +291,7 @@ VOID LanReceiveWorker( PVOID Context ) {
|
|||
TI_DbgPrint(MID_TRACE,("Received ARP Packet\n"));
|
||||
ARPReceive(Adapter->Context, &IPPacket);
|
||||
default:
|
||||
IPPacket.Free(&IPPacket);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue