summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/DxeNetLib/NetBuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Library/DxeNetLib/NetBuffer.c')
-rw-r--r--MdeModulePkg/Library/DxeNetLib/NetBuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/DxeNetLib/NetBuffer.c b/MdeModulePkg/Library/DxeNetLib/NetBuffer.c
index d1dbd0a..69e9082 100644
--- a/MdeModulePkg/Library/DxeNetLib/NetBuffer.c
+++ b/MdeModulePkg/Library/DxeNetLib/NetBuffer.c
@@ -653,7 +653,7 @@ NetbufGetFragment (
CurBlockOp++
);
- for (Index = First + 1; Index < Last; Index++) {
+ for (Index = First + 1; Index <= Last - 1 ; Index++) {
NetbufSetBlockOp (
Child,
BlockOp[Index].Head,