Fixed the issue of that IP4driver can’t correctly reassemble the Out of Sequence Fragments.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10537 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qianouyang 2010-05-21 09:39:26 +00:00
parent ce5fad4151
commit a167ecb13f
1 changed files with 1 additions and 1 deletions

View File

@ -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);