summaryrefslogtreecommitdiff
path: root/NetworkPkg
diff options
context:
space:
mode:
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-12 06:23:05 +0000
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-12 06:23:05 +0000
commitd5aff67358b5a6c4b22e20019abdfd235fafd006 (patch)
treeec9a37fbedc76b7c554b908091dfd22edee9b345 /NetworkPkg
parent129b8b096fa2f87a4b24f31c004dea7bfe7872dd (diff)
downloadedk2-platforms-d5aff67358b5a6c4b22e20019abdfd235fafd006.tar.xz
1. Enhanced error handling in case PXE DHCP process error happens.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12123 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c b/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
index f582590838..8e1e91cb65 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
@@ -405,6 +405,10 @@ EfiPxeBcDhcp (
//
Status = PxeBcDhcp6Sarr (Private, Private->Dhcp6);
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+
//
// Configure Udp6Read instance
//
@@ -421,6 +425,10 @@ EfiPxeBcDhcp (
//
Status = PxeBcDhcp4Dora (Private, Private->Dhcp4);
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+
//
// Configure Udp4Read instance
//