Author: cgutman
Date: Wed Sep 3 01:26:32 2008
New Revision: 35897
URL:
http://svn.reactos.org/svn/reactos?rev=35897&view=rev
Log:
- Fail if we didn't successfully add the header
Modified:
branches/aicom-network-fixes/lib/drivers/ip/transport/rawip/rawip.c
Modified: branches/aicom-network-fixes/lib/drivers/ip/transport/rawip/rawip.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers…
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/transport/rawip/rawip.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/lib/drivers/ip/transport/rawip/rawip.c [iso-8859-1] Wed
Sep 3 01:26:32 2008
@@ -143,6 +143,13 @@
break;
}
+ if( !NT_SUCCESS(Status) ) {
+ TI_DbgPrint(MIN_TRACE, ("Cannot add header. Status = (0x%X)\n",
+ Status));
+ FreeNdisPacket(Packet->NdisPacket);
+ return Status;
+ }
+
TI_DbgPrint(MID_TRACE, ("Copying data (hdr %x data %x (%d))\n",
Packet->Header, Packet->Data,
(PCHAR)Packet->Data - (PCHAR)Packet->Header));