From a360f126b6f51d25d0cf0e09b9087a4821c7c770 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Fri, 25 Aug 2023 17:46:34 -0400 Subject: [PATCH] backport of commit 135240d6378c74dfe5894f6d0c2ae314b762eb3d (#22573) Co-authored-by: Mike Palmiotto --- vault/request_handling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/request_handling.go b/vault/request_handling.go index ff5dfd95f991..24cf76de5904 100644 --- a/vault/request_handling.go +++ b/vault/request_handling.go @@ -440,7 +440,7 @@ func (c *Core) CheckToken(ctx context.Context, req *logical.Request, unauth bool c.activityLogLock.RUnlock() // If it is an authenticated ( i.e. with vault token ) request, increment client count if !unauth && activityLog != nil { - err := c.activityLog.HandleTokenUsage(ctx, te, clientID, isTWE) + err := activityLog.HandleTokenUsage(ctx, te, clientID, isTWE) if err != nil { return auth, te, err }