]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c
Fixed the issue of that IP4driver can’t correctly reassemble the Out of Sequence...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Input.c
index 66c8f4ad6ab301dc717452e6e3716b4e6e79230d..d888e18e4cc7d6b8cc83b12d9a28afa092bec47e 100644 (file)
@@ -292,7 +292,7 @@ Ip4Reassemble (
   // check whether THIS.Start < PREV.End for overlap. If two fragments\r
   // overlaps, trim the overlapped part off THIS fragment.\r
   //\r
-  if ((Prev = Cur->ForwardLink) != Head) {\r
+  if ((Cur != Head) && ((Prev = Cur->BackLink) != Head)) {\r
     Fragment  = NET_LIST_USER_STRUCT (Prev, NET_BUF, List);\r
     Node      = IP4_GET_CLIP_INFO (Fragment);\r
 \r