From 39669f1281f56c399a48af1b976696f9d86e1089 Mon Sep 17 00:00:00 2001 From: hhuan13 Date: Wed, 2 Jun 2010 07:55:14 +0000 Subject: Fixed tracker #203752, Dhcp4 assert issue. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10562 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg') 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; } -- cgit v1.2.3