mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-15 15:21:37 +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. */
|
/* to download the second stage loader in that case. */
|
||||||
NextNode = NextDevicePathNode(Node);
|
NextNode = NextDevicePathNode(Node);
|
||||||
if (!IsDevicePathEnd(NextNode))
|
if (!IsDevicePathEnd(NextNode))
|
||||||
continue;
|
goto out;
|
||||||
|
|
||||||
/* Save the current URI */
|
/* Save the current URI */
|
||||||
UriNode = (URI_DEVICE_PATH *)Node;
|
UriNode = (URI_DEVICE_PATH *)Node;
|
||||||
|
Loading…
Reference in New Issue
Block a user