mirror of https://github.com/k3s-io/k3s
Fix off-by-one crash in pkg/apiserver/authn.go
parent
6bdb3bf4fe
commit
eca22d4c82
|
@ -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