Author: cgutman
Date: Wed Sep 3 01:47:05 2008
New Revision: 35899
URL:
http://svn.reactos.org/svn/reactos?rev=35899&view=rev
Log:
- Fail if PrepareARPPacket returned NULL
- Fixes another possible crash
Modified:
branches/aicom-network-fixes/lib/drivers/ip/network/arp.c
Modified: branches/aicom-network-fixes/lib/drivers/ip/network/arp.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers…
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/network/arp.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/lib/drivers/ip/network/arp.c [iso-8859-1] Wed Sep 3
01:47:05 2008
@@ -149,6 +149,8 @@
NULL, /* Don't care */
&Address->Address, /* Target's (remote) protocol address
*/
ARP_OPCODE_REQUEST); /* ARP request */
+
+ if( !NdisPacket ) return FALSE;
ASSERT_KM_POINTER(NdisPacket);
ASSERT_KM_POINTER(PC(NdisPacket));