summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c
diff options
context:
space:
mode:
authorljin6 <ljin6@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-01 03:32:28 +0000
committerljin6 <ljin6@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-01 03:32:28 +0000
commitfa6d3ee4913eaf3b0fd9ddb8a4e3b618584bd965 (patch)
treefe43cd3dfd425c23d35b787c03bafebebc253c90 /MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c
parent9f7d5b46aa54a46cf03e52569757d642c15d5175 (diff)
downloadedk2-platforms-fa6d3ee4913eaf3b0fd9ddb8a4e3b618584bd965.tar.xz
Get MaxPacketSize from IP4 mode data and reduce the head size of UDP and MTFTP, and take it as BlockSize to download.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9894 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c')
-rw-r--r--MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c
index f2d8eecfe2..d2e60b6a59 100644
--- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c
+++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c
@@ -1270,7 +1270,9 @@ PxeBcDiscvBootService (
//
// free the responselist
//
- FreePool (Token.ResponseList);
+ if (Token.ResponseList != NULL) {
+ FreePool (Token.ResponseList);
+ }
}
//
// Free the dhcp packet