- Fail if we didn't successfully add the header

svn path=/branches/aicom-network-fixes/; revision=35897
This commit is contained in:
Cameron Gutman 2008-09-02 23:26:32 +00:00
parent d75a5f4d04
commit fe270e9c66

View file

@ -143,6 +143,13 @@ NTSTATUS BuildRawIpPacket(
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));