mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-13 21:56:57 +00:00
httpboot: fix the infinite loop
We should get out of the loop once the uri node is not the last node in the device path. Signed-off-by: Gary Lin <glin@suse.com>
This commit is contained in:
parent
a752290c38
commit
736af67122
@ -162,7 +162,7 @@ find_httpboot (EFI_HANDLE device)
|
||||
/* to download the second stage loader in that case. */
|
||||
NextNode = NextDevicePathNode(Node);
|
||||
if (!IsDevicePathEnd(NextNode))
|
||||
continue;
|
||||
goto out;
|
||||
|
||||
/* Save the current URI */
|
||||
UriNode = (URI_DEVICE_PATH *)Node;
|
||||
|
Loading…
Reference in New Issue
Block a user