Skip to content

Commit b504f2b

Browse files
Define DELEGATOR before the DFS loop
Co-authored-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
1 parent d5da437 commit b504f2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tuf-spec.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ it in the next step.
14721472
non-volatile storage as FILENAME.EXT (e.g. targets.json).
14731473

14741474
7. **Perform a preorder depth-first search for metadata about the
1475-
desired target.** Let TARGETS be the current metadata, beginning with the
1475+
desired target.** Let DELEGATOR refer to the current
14761476
top-level targets metadata role.
14771477

14781478
1. If this role has been visited before, then skip this role
@@ -1485,7 +1485,7 @@ it in the next step.
14851485
2. Otherwise, recursively search the list of delegations in
14861486
order of appearance.
14871487

1488-
1. Let DELEGATOR be the current target role TARGETS and DELEGATEE denote
1488+
1. Let DELEGATEE denote
14891489
the current target role DELEGATOR is delegating to.
14901490

14911491
2. **Download the DELEGATEE targets metadata file**, up to either
@@ -1529,7 +1529,7 @@ it in the next step.
15291529

15301530
8. Otherwise, if the current delegation is a non-terminating
15311531
delegation, continue processing the next delegation, if any, by repeating
1532-
the preorder depth-first search with DELEGATEE as the current TARGET role.
1532+
the preorder depth-first search with the DELEGATEE as the DELEGATOR.
15331533
Stop the search, and jump to step [[#fetch-target]]. as soon as a
15341534
delegation returns a result.
15351535

0 commit comments

Comments
 (0)