Author: cgutman
Date: Sat Apr 4 04:24:20 2009
New Revision: 40356
URL:
http://svn.reactos.org/svn/reactos?rev=40356&view=rev
Log:
- Initialize packets before using them
- Part 2 of 2
Modified:
trunk/reactos/drivers/network/tcpip/datalink/lan.c
Modified: trunk/reactos/drivers/network/tcpip/datalink/lan.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/data…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Sat Apr 4 04:24:20
2009
@@ -254,6 +254,8 @@
Adapter = WorkItem->Adapter;
BytesTransferred = WorkItem->BytesTransferred;
+ IPInitializePacket(&IPPacket, 0);
+
IPPacket.NdisPacket = Packet;
NdisGetFirstBufferFromPacket(Packet,
@@ -289,6 +291,7 @@
TI_DbgPrint(MID_TRACE,("Received ARP Packet\n"));
ARPReceive(Adapter->Context, &IPPacket);
default:
+ IPPacket.Free(&IPPacket);
break;
}