Skip to content
Snippets Groups Projects
Commit 16425ac7 authored by benjamin's avatar benjamin
Browse files

fixed identities linked list construction

parent 5dce3ab3
No related branches found
No related tags found
2 merge requests!510Release,!428built the system to sequentually pick up old ephemerals, breaks interfaces and tests
......@@ -405,14 +405,15 @@ func (t *manager) generateIdentitiesOverRange(inQuestion *TrackedID,
//link the chain
if len(identitiesToChain) > 0 {
firstLink := identitiesToChain[len(identitiesToChain)-1]
firstLink := &identitiesToChain[len(identitiesToChain)-1]
currentLink := firstLink
if len(identitiesToChain) > 1 {
for i := len(identitiesToChain) - 1; i >= 0; i-- {
currentLink.ProcessNext = &identitiesToChain[i]
currentLink = currentLink.ProcessNext
}
}
identitiesToAdd = append(identitiesToAdd, firstLink)
identitiesToAdd = append(identitiesToAdd, *firstLink)
}
//add the identities
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment