From 278c601958d88a054c4919b7c23bf1b5a881dc65 Mon Sep 17 00:00:00 2001 From: hhuan13 Date: Wed, 1 Jun 2011 03:30:05 +0000 Subject: 1. Add error handling for PXE-IPV6. Signed-off-by: hhuan13 Reviewed-by: tye git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11720 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'NetworkPkg') diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c b/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c index dd1d76d820..d58e2b46c2 100644 --- a/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c +++ b/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c @@ -1,7 +1,7 @@ /** @file Boot functions implementation for UefiPxeBc Driver. - Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2011, 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 @@ -1074,6 +1074,9 @@ PxeBcLoadBootFile ( // Discover the boot information about the bootfile if hasn't. // Status = PxeBcDiscoverBootFile (Private, &RequiredSize); + if (EFI_ERROR (Status)) { + goto ON_EXIT; + } if (PXEBC_IS_SIZE_OVERFLOWED (RequiredSize)) { // -- cgit v1.2.3