diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-10 06:59:07 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-10 06:59:07 +0000 |
commit | a4df47f1090a723108cdd7ae45c9adce8ab5bcca (patch) | |
tree | f2104e6cd5b97774c3dbbed85cf67f1d768beb89 /MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c | |
parent | d2eec3191275e0f799d42e179fc8d8a04290992f (diff) | |
download | edk2-platforms-a4df47f1090a723108cdd7ae45c9adce8ab5bcca.tar.xz |
1. remove duplicated NetLibDispatchDpc() calling in Pool function.
2. use mde library
3. add security check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8860 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c index 6d82230457..90031903a4 100644 --- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c +++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c @@ -427,21 +427,21 @@ DhcpCleanConfigure ( UINT32 Index;
if (Config->DiscoverTimeout != NULL) {
- gBS->FreePool (Config->DiscoverTimeout);
+ FreePool (Config->DiscoverTimeout);
}
if (Config->RequestTimeout != NULL) {
- gBS->FreePool (Config->RequestTimeout);
+ FreePool (Config->RequestTimeout);
}
if (Config->OptionList != NULL) {
for (Index = 0; Index < Config->OptionCount; Index++) {
if (Config->OptionList[Index] != NULL) {
- gBS->FreePool (Config->OptionList[Index]);
+ FreePool (Config->OptionList[Index]);
}
}
- gBS->FreePool (Config->OptionList);
+ FreePool (Config->OptionList);
}
ZeroMem (Config, sizeof (EFI_DHCP4_CONFIG_DATA));
@@ -564,14 +564,14 @@ DhcpYieldControl ( DhcpSb->ActiveChild = NULL;
if (Config->DiscoverTimeout != NULL) {
- gBS->FreePool (Config->DiscoverTimeout);
+ FreePool (Config->DiscoverTimeout);
Config->DiscoverTryCount = 0;
Config->DiscoverTimeout = NULL;
}
if (Config->RequestTimeout != NULL) {
- gBS->FreePool (Config->RequestTimeout);
+ FreePool (Config->RequestTimeout);
Config->RequestTryCount = 0;
Config->RequestTimeout = NULL;
|