mirror of https://github.com/acidanthera/audk.git
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:
parent
0bc17488fe
commit
ef2455b175
|
@ -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.
|
// Parse the cached PXE reply packet, and store it into mode data if valid.
|
||||||
//
|
//
|
||||||
|
@ -937,6 +939,10 @@ EfiPxeBcMtftp (
|
||||||
Mode->IcmpErrorReceived = TRUE;
|
Mode->IcmpErrorReceived = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (EFI_ERROR (Status)) {
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
|
|
||||||
if (Mode->UsingIpv6) {
|
if (Mode->UsingIpv6) {
|
||||||
Status = Private->Udp6Read->Configure (Private->Udp6Read, &Private->Udp6CfgData);
|
Status = Private->Udp6Read->Configure (Private->Udp6Read, &Private->Udp6CfgData);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue