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
This commit is part of merge request !428. Comments created here will be created in the context of that merge request.
...@@ -405,14 +405,15 @@ func (t *manager) generateIdentitiesOverRange(inQuestion *TrackedID, ...@@ -405,14 +405,15 @@ func (t *manager) generateIdentitiesOverRange(inQuestion *TrackedID,
//link the chain //link the chain
if len(identitiesToChain) > 0 { if len(identitiesToChain) > 0 {
firstLink := identitiesToChain[len(identitiesToChain)-1] firstLink := &identitiesToChain[len(identitiesToChain)-1]
currentLink := firstLink currentLink := firstLink
if len(identitiesToChain) > 1 { if len(identitiesToChain) > 1 {
for i := len(identitiesToChain) - 1; i >= 0; i-- { for i := len(identitiesToChain) - 1; i >= 0; i-- {
currentLink.ProcessNext = &identitiesToChain[i] currentLink.ProcessNext = &identitiesToChain[i]
currentLink = currentLink.ProcessNext
} }
} }
identitiesToAdd = append(identitiesToAdd, firstLink) identitiesToAdd = append(identitiesToAdd, *firstLink)
} }
//add the identities //add the identities
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment