diff options
| author | Gary Lin <glin@suse.com> | 2018-01-05 16:51:39 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2018-02-28 14:47:12 -0500 |
| commit | 736af671226c7aa93b7edbcfdf87fc6856a907e0 (patch) | |
| tree | 95f96086a24dba5803518716f6ed260009e41e20 | |
| parent | a752290c38b1c031859fcfbee77258cab3bc0ac1 (diff) | |
| download | efi-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>
| -rw-r--r-- | httpboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
