diff --git a/ud/store/store.go b/ud/store/store.go index 11638fd53c17afcb61043125fa0b0404977d7030..f2083eb8371675d5f17f84b2c736375d83a6147d 100644 --- a/ud/store/store.go +++ b/ud/store/store.go @@ -274,10 +274,11 @@ func (s *Store) unmarshalUnconfirmedFacts(data []byte) (map[string]fact.Fact, er // Deserialize the list into a map unconfirmedFacts := make(map[string]fact.Fact, 0) - for _, ufd := range ufdList { + for i := range ufdList { + ufd := ufdList[i] f, err := fact.UnstringifyFact(ufd.stringifiedFact) if err != nil { - return nil, errors.WithMessage(err, malformedFactErr) + return unconfirmedFacts, errors.WithMessage(err, malformedFactErr) } unconfirmedFacts[ufd.confirmationId] = f