mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-12 07:40:46 +00:00
httpboot: return EFI_NOT_FOUND when it fails to find the NIC handle
httpboot_fetch_buffer() should return EFI_NOT_FOUND to reflect the error status when get_nic_handle() returns NULL. Signed-off-by: Gary Lin <glin@suse.com> Upstream-commit-id: 2be5c7dc4b0
This commit is contained in:
parent
7471867794
commit
8a66f5571b
@ -715,6 +715,7 @@ httpboot_fetch_buffer (EFI_HANDLE image, VOID **buffer, UINT64 *buf_size)
|
|||||||
also supports the HTTP service binding protocol */
|
also supports the HTTP service binding protocol */
|
||||||
nic = get_nic_handle(&mac_addr);
|
nic = get_nic_handle(&mac_addr);
|
||||||
if (!nic) {
|
if (!nic) {
|
||||||
|
efi_status = EFI_NOT_FOUND;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user