mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #6320 from cjcullen/offbyone
Fix off-by-one crash in pkg/apiserver/authn.go
This commit is contained in:
commit
668e8655c6
@ -49,7 +49,7 @@ func NewAuthenticator(clientCAFile string, tokenFile string) (authenticator.Requ
|
||||
return nil, nil
|
||||
}
|
||||
if len(authenticators) == 1 {
|
||||
return authenticators[1], nil
|
||||
return authenticators[0], nil
|
||||
}
|
||||
return union.New(authenticators...), nil
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user