Update token path with / at end to ensure it's the token store

This commit is contained in:
Jeff Mitchell 2019-04-08 14:25:29 -04:00
parent 1d982c234f
commit 30209cdd35
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ func (r *Router) routeCommon(ctx context.Context, req *logical.Request, existenc
// token store; such a request will have already been routed through the
// token store -> exp manager -> here so we need to not grab the lock again
// or we'll be recursively grabbing it.
if !(req.Operation == logical.RenewOperation && strings.HasPrefix(req.Path, "auth/token")) {
if !(req.Operation == logical.RenewOperation && strings.HasPrefix(req.Path, "auth/token/")) {
re.l.RLock()
defer re.l.RUnlock()
}