Skip to content

Commit

Permalink
httpboot: fix the infinite loop
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lcp authored and vathpela committed Feb 28, 2018
1 parent a752290 commit 736af67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 736af67

Please sign in to comment.