summaryrefslogtreecommitdiff
path: root/httpboot.c
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2018-01-05 16:51:39 +0800
committerPeter Jones <pjones@redhat.com>2018-02-28 14:47:12 -0500
commit736af671226c7aa93b7edbcfdf87fc6856a907e0 (patch)
tree95f96086a24dba5803518716f6ed260009e41e20 /httpboot.c
parenta752290c38b1c031859fcfbee77258cab3bc0ac1 (diff)
downloadefi-boot-shim-736af671226c7aa93b7edbcfdf87fc6856a907e0.tar.gz
efi-boot-shim-736af671226c7aa93b7edbcfdf87fc6856a907e0.zip
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>
Diffstat (limited to 'httpboot.c')
-rw-r--r--httpboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpboot.c b/httpboot.c
index 94299e2e..7219e9bb 100644
--- a/httpboot.c
+++ b/httpboot.c
@@ -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;