Skip to content

Commit

Permalink
auth: fix cherry-pick
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
  • Loading branch information
hexfusion committed Jan 9, 2019
1 parent c7f744d commit 1590373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ func (as *authStore) Revision() uint64 {
return atomic.LoadUint64(&as.revision)
}

func (as *authStore) AuthInfoFromTLS(ctx context.Context) (ai *AuthInfo) {
func (as *authStore) AuthInfoFromTLS(ctx context.Context) *AuthInfo {
peer, ok := peer.FromContext(ctx)
if !ok || peer == nil || peer.AuthInfo == nil {
return nil
Expand All @@ -982,7 +982,7 @@ func (as *authStore) AuthInfoFromTLS(ctx context.Context) (ai *AuthInfo) {
cn := chain.Subject.CommonName
plog.Debugf("found common name %s", cn)

ai = &AuthInfo{
ai := &AuthInfo{
Username: cn,
Revision: as.Revision(),
}
Expand Down

0 comments on commit 1590373

Please sign in to comment.