mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
- Fail if we didn't successfully add the header
svn path=/branches/aicom-network-fixes/; revision=35897
This commit is contained in:
parent
d75a5f4d04
commit
fe270e9c66
1 changed files with 7 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue