Fix bug for UefiPxeBcDxe driver to catch the return status.

Signed-off-by: sfu5
Reviewed-by: hhuan13
Reviewed-by: xdu2

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12253 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
sfu5 2011-09-01 08:51:00 +00:00
parent 0bc17488fe
commit ef2455b175
1 changed files with 7 additions and 1 deletions

View File

@ -669,7 +669,9 @@ EfiPxeBcDiscover (
);
}
if (!EFI_ERROR (Status)) {
if (EFI_ERROR (Status)) {
return Status;
} else {
//
// Parse the cached PXE reply packet, and store it into mode data if valid.
//
@ -937,6 +939,10 @@ EfiPxeBcMtftp (
Mode->IcmpErrorReceived = TRUE;
}
if (EFI_ERROR (Status)) {
return Status;
}
if (Mode->UsingIpv6) {
Status = Private->Udp6Read->Configure (Private->Udp6Read, &Private->Udp6CfgData);
} else {