diff options
author | hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-02 07:55:14 +0000 |
---|---|---|
committer | hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-02 07:55:14 +0000 |
commit | 39669f1281f56c399a48af1b976696f9d86e1089 (patch) | |
tree | cfcef8ecc31ee369b4def2d9b0054ecc8c402985 /MdeModulePkg/Universal | |
parent | 4548fc2aaada33c16fd1d02e8a05fe71050e64b4 (diff) | |
download | edk2-platforms-39669f1281f56c399a48af1b976696f9d86e1089.tar.xz |
Fixed tracker #203752, Dhcp4 assert issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10562 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c index 6030a824aa..ba7082e985 100644 --- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c +++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c @@ -1516,8 +1516,10 @@ DhcpOnTimerTick ( Status = DhcpChooseOffer (DhcpSb);
if (EFI_ERROR(Status)) {
- FreePool (DhcpSb->LastOffer);
- DhcpSb->LastOffer = NULL;
+ if (DhcpSb->LastOffer != NULL) {
+ FreePool (DhcpSb->LastOffer);
+ DhcpSb->LastOffer = NULL;
+ }
} else {
goto ON_EXIT;
}
|