From eca22d4c825547725c7b54cb68e6f9099966bd44 Mon Sep 17 00:00:00 2001 From: CJ Cullen Date: Wed, 1 Apr 2015 15:53:22 -0700 Subject: [PATCH] Fix off-by-one crash in pkg/apiserver/authn.go --- pkg/apiserver/authn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apiserver/authn.go b/pkg/apiserver/authn.go index f606ba4bc4..9b516c9c4b 100644 --- a/pkg/apiserver/authn.go +++ b/pkg/apiserver/authn.go @@ -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