Commit eca22d4c authored by CJ Cullen's avatar CJ Cullen

Fix off-by-one crash in pkg/apiserver/authn.go

parent 6bdb3bf4
...@@ -49,7 +49,7 @@ func NewAuthenticator(clientCAFile string, tokenFile string) (authenticator.Requ ...@@ -49,7 +49,7 @@ func NewAuthenticator(clientCAFile string, tokenFile string) (authenticator.Requ
return nil, nil return nil, nil
} }
if len(authenticators) == 1 { if len(authenticators) == 1 {
return authenticators[1], nil return authenticators[0], nil
} }
return union.New(authenticators...), nil return union.New(authenticators...), nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment