From a167ecb13fc20bf4a2a45ef9aeda976e0498bf61 Mon Sep 17 00:00:00 2001 From: qianouyang Date: Fri, 21 May 2010 09:39:26 +0000 Subject: [PATCH] =?utf8?q?Fixed=20the=20issue=20of=20that=20IP4driver=20ca?= =?utf8?q?n=E2=80=99t=20correctly=20reassemble=20the=20Out=20of=20Sequence?= =?utf8?q?=20Fragments.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10537 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c index 66c8f4ad6a..d888e18e4c 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c @@ -292,7 +292,7 @@ Ip4Reassemble ( // check whether THIS.Start < PREV.End for overlap. If two fragments // overlaps, trim the overlapped part off THIS fragment. // - if ((Prev = Cur->ForwardLink) != Head) { + if ((Cur != Head) && ((Prev = Cur->BackLink) != Head)) { Fragment = NET_LIST_USER_STRUCT (Prev, NET_BUF, List); Node = IP4_GET_CLIP_INFO (Fragment); -- 2.39.2