Skip to content

Commit

Permalink
Avoid panic at login when external group has a nil alias (#6230)
Browse files Browse the repository at this point in the history
  • Loading branch information
uepoch authored and briankassouf committed Feb 14, 2019
1 parent 5d44435 commit b9373b0
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 b9373b0

Please sign in to comment.