X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FTcp4Dxe%2FTcp4Output.c;h=956385a914d574930e1e76f68046b92a0b6a8406;hp=c9a1f6b106aa9cd495490a08e73192a420f8b168;hb=894d038a8d0e99d456042e2b6d1554c4a406ea70;hpb=77f00155e3c9331f4d6a6ab204514e394ed98631 diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c index c9a1f6b106..956385a914 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c @@ -1,7 +1,7 @@ /** @file TCP output process routines. -Copyright (c) 2005 - 2006, Intel Corporation
+Copyright (c) 2005 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -445,7 +445,9 @@ TcpGetSegmentSndQue ( } } - ASSERT (Cur != Head); + ASSERT (Cur != Head); + ASSERT (Node != NULL); + ASSERT (Seg != NULL); // // Return the buffer if it can be returned without @@ -750,6 +752,7 @@ SEND_AGAIN: Len = TcpDataToSend (Tcb, Force); Seq = Tcb->SndNxt; + ASSERT ((Tcb->State) < (sizeof (mTcpOutFlag) / sizeof (mTcpOutFlag[0]))); Flag = mTcpOutFlag[Tcb->State]; if ((Flag & TCP_FLG_SYN) != 0) {