Skip to content

Commit

Permalink
Fix potential race on core.activityLog (#22571)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmi authored Aug 25, 2023
1 parent 3e900fd commit 135240d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/request_handling.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 135240d

Please sign in to comment.