Skip to content

Commit

Permalink
Avoid panic at login when external group has a nil alias (hashicorp#6230
Browse files Browse the repository at this point in the history
)
  • Loading branch information
uepoch authored and tionebsalocin committed Oct 22, 2019
1 parent 0412e53 commit 6d86c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/identity_store_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ func (i *IdentityStore) refreshExternalGroupMembershipsByEntityID(entityID strin

// If the external group is from a different mount, don't remove the
// entity ID from it.
if mountAccessor != "" && group.Alias.MountAccessor != mountAccessor {
if mountAccessor != "" && group.Alias != nil && group.Alias.MountAccessor != mountAccessor {
continue
}

Expand Down

0 comments on commit 6d86c74

Please # to comment.