Skip to content

Commit

Permalink
identity: Fix potential deadlock on error to load groups (#8613) (#8616)
Browse files Browse the repository at this point in the history
  • Loading branch information
briankassouf committed Mar 25, 2020
1 parent 361d7c0 commit aa37abd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vault/identity_store_util.go
Expand Up @@ -150,6 +150,7 @@ func (i *IdentityStore) loadGroups(ctx context.Context) error {
for _, memberEntityID := range group.MemberEntityIDs {
entity, err := i.MemDBEntityByID(memberEntityID, false)
if err != nil {
txn.Abort()
return err
}
if entity == nil {
Expand Down

0 comments on commit aa37abd

Please sign in to comment.