diff options
author | hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-12 06:23:05 +0000 |
---|---|---|
committer | hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-12 06:23:05 +0000 |
commit | d5aff67358b5a6c4b22e20019abdfd235fafd006 (patch) | |
tree | ec9a37fbedc76b7c554b908091dfd22edee9b345 /NetworkPkg | |
parent | 129b8b096fa2f87a4b24f31c004dea7bfe7872dd (diff) | |
download | edk2-d5aff67358b5a6c4b22e20019abdfd235fafd006.tar.gz edk2-d5aff67358b5a6c4b22e20019abdfd235fafd006.tar.bz2 edk2-d5aff67358b5a6c4b22e20019abdfd235fafd006.zip |
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.c | 8 |
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
//
|