X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=NetworkPkg%2FHttpBootDxe%2FHttpBootClient.c;h=378bf02880808b0df0d8b7cc6af3a3526b6f8e8f;hb=7570696c57d446f163050c2befb78b8fc6cfeb02;hp=46cf9ca6fb78e49cc48ed5cf1cb1f7c5d3b94133;hpb=a93786ae6c4f8a92e216899c05366ba7aacf72e7;p=mirror_edk2.git diff --git a/NetworkPkg/HttpBootDxe/HttpBootClient.c b/NetworkPkg/HttpBootDxe/HttpBootClient.c index 46cf9ca6fb..378bf02880 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootClient.c +++ b/NetworkPkg/HttpBootDxe/HttpBootClient.c @@ -1008,7 +1008,10 @@ HttpBootGetBootFile ( FALSE, &ResponseBody ); - if (EFI_ERROR (Status)) { + if (EFI_ERROR (Status) || EFI_ERROR (ResponseBody.Status)) { + if (EFI_ERROR (ResponseBody.Status)) { + Status = ResponseBody.Status; + } goto ERROR_6; } ReceivedSize += ResponseBody.BodyLength; @@ -1045,7 +1048,10 @@ HttpBootGetBootFile ( FALSE, &ResponseBody ); - if (EFI_ERROR (Status)) { + if (EFI_ERROR (Status) || EFI_ERROR (ResponseBody.Status)) { + if (EFI_ERROR (ResponseBody.Status)) { + Status = ResponseBody.Status; + } goto ERROR_6; }