From 9c12f2d77fe8ac958e6da4ceb92378227dd6c676 Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Mon, 17 Mar 2014 05:32:32 +0000 Subject: =?UTF-8?q?Remove=20ASSERT=20when=20failed=20to=20Get/Set=20?= =?UTF-8?q?=E2=80=9CAttemptOrder=E2=80=9D=20and=20=E2=80=9CClientId?= =?UTF-8?q?=E2=80=9D=20variable.=20Removes=20RT=20attribute=20for=20?= =?UTF-8?q?=E2=80=9CAttemptOrder=E2=80=9D=20variable.=20Signed-off-by:=20F?= =?UTF-8?q?u=20Siyuan=20=20Reviewed-by:=20Dong,=20Guo?= =?UTF-8?q?=20=20Reviewed-by:=20Yao,=20Jiewen=20=20Contributed-under:=20TianoCore=20Contributio?= =?UTF-8?q?n=20Agreement=201.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15328 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'NetworkPkg/Dhcp6Dxe') 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.
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
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; } -- cgit v1.2.3