summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2018-05-28 16:05:38 +0800
committerPeter Jones <pjones@redhat.com>2020-07-23 20:51:18 -0400
commit8a66f5571bb059d2692e804f4ba9817e978dd103 (patch)
treea1eb8c1a344a41432996ce47a55391d852863b14
parent74718677945b1ab825130b317c63f5002876e772 (diff)
downloadefi-boot-shim-8a66f5571bb059d2692e804f4ba9817e978dd103.tar.gz
efi-boot-shim-8a66f5571bb059d2692e804f4ba9817e978dd103.zip
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
-rw-r--r--httpboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/httpboot.c b/httpboot.c
index 4cfa3aab..d656073c 100644
--- a/httpboot.c
+++ b/httpboot.c
@@ -715,6 +715,7 @@ httpboot_fetch_buffer (EFI_HANDLE image, VOID **buffer, UINT64 *buf_size)
also supports the HTTP service binding protocol */
nic = get_nic_handle(&mac_addr);
if (!nic) {
+ efi_status = EFI_NOT_FOUND;
goto error;
}