Check for a bad return from AllocatePacketWithBuffer.

svn path=/trunk/; revision=12192
This commit is contained in:
Art Yerkes 2004-12-18 18:22:47 +00:00
parent f4354d8f89
commit 1a2e000397

View file

@ -132,6 +132,8 @@ NTSTATUS BuildUDPPacket(
NULL, NULL,
Packet->TotalSize + MaxLLHeaderSize ); Packet->TotalSize + MaxLLHeaderSize );
if( !NT_SUCCESS(Status) ) return Status;
TI_DbgPrint(MID_TRACE, ("Allocated packet: %x\n", Packet->NdisPacket)); TI_DbgPrint(MID_TRACE, ("Allocated packet: %x\n", Packet->NdisPacket));
TI_DbgPrint(MID_TRACE, ("Local Addr : %s\n", A2S(LocalAddress))); TI_DbgPrint(MID_TRACE, ("Local Addr : %s\n", A2S(LocalAddress)));
TI_DbgPrint(MID_TRACE, ("Remote Addr: %s\n", A2S(RemoteAddress))); TI_DbgPrint(MID_TRACE, ("Remote Addr: %s\n", A2S(RemoteAddress)));