summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/Dhcp6Dxe
diff options
context:
space:
mode:
authorFu Siyuan <siyuan.fu@intel.com>2014-03-17 05:32:32 +0000
committersfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2014-03-17 05:32:32 +0000
commit9c12f2d77fe8ac958e6da4ceb92378227dd6c676 (patch)
tree086d812192ca86a73f92d1bd33058fb3785ab567 /NetworkPkg/Dhcp6Dxe
parent1c9135a288234d15086a5b6f267dd4822d044064 (diff)
downloadedk2-9c12f2d77fe8ac958e6da4ceb92378227dd6c676.tar.gz
edk2-9c12f2d77fe8ac958e6da4ceb92378227dd6c676.tar.bz2
edk2-9c12f2d77fe8ac958e6da4ceb92378227dd6c676.zip
Remove ASSERT when failed to Get/Set “AttemptOrder” and “ClientId” variable.
Removes RT attribute for “AttemptOrder” variable. Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Dong, Guo <guo.dong@intel.com> Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15328 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg/Dhcp6Dxe')
-rw-r--r--NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
index 32247c927b..7591bf56ba 100644
--- a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
+++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
@@ -1,7 +1,7 @@
/** @file
Dhcp6 support functions implementation.
- Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -157,7 +157,10 @@ Dhcp6GenerateClientId (
Duid->Length + 2,
(VOID *) Duid
);
- ASSERT_EFI_ERROR (Status);
+ if (EFI_ERROR (Status)) {
+ FreePool (Duid);
+ return NULL;
+ }
return Duid;
}