From da9bd8ca63bf6c18def7025d160a98dc7e9f43fd Mon Sep 17 00:00:00 2001 From: Zhiyu Wang Date: Tue, 2 Aug 2022 11:02:02 +0800 Subject: [PATCH] Fix: missing return when token is null (#4520) Signed-off-by: Zhiyu Wang (cherry picked from commit d810d9d042b8da8650d6cf4ae321e460f4662305) --- pkg/apiserver/interfaces/api/authentication.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/apiserver/interfaces/api/authentication.go b/pkg/apiserver/interfaces/api/authentication.go index 753e9da0f..6e563a116 100644 --- a/pkg/apiserver/interfaces/api/authentication.go +++ b/pkg/apiserver/interfaces/api/authentication.go @@ -104,6 +104,7 @@ func authCheckFilter(req *restful.Request, res *restful.Response, chain *restful } if tokenValue == "" { bcode.ReturnError(req, res, bcode.ErrNotAuthorized) + return } }