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@12252 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
sfu5 2011-09-01 08:48:51 +00:00
parent 1b5592bf15
commit 0bc17488fe
1 changed files with 5 additions and 0 deletions

View File

@ -1024,6 +1024,7 @@ EfiPxeBcDiscover (
} else {
Status = EFI_DEVICE_ERROR;
}
return Status;
} else {
PxeBcParseCachedDhcpPacket (&Private->PxeReply);
}
@ -1278,6 +1279,10 @@ EfiPxeBcMtftp (
Mode->IcmpErrorReceived = TRUE;
}
if (EFI_ERROR (Status)) {
return Status;
}
Status = Private->Udp4Read->Configure (Private->Udp4Read, &Private->Udp4CfgData);
//
// Dhcp(), Discover(), and Mtftp() set the IP filter, and return with the IP