Skip to content

Commit

Permalink
Adds missing unlock of RWMutex in OIDC delete key (#12916)
Browse files Browse the repository at this point in the history
  • Loading branch information
austingebauer committed Oct 25, 2021
1 parent dd80dbf commit d0c0571
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/12916.txt
@@ -0,0 +1,3 @@
```release-note:bug
identity/token: Adds missing call to unlock mutex in key deletion error handling
```
1 change: 1 addition & 0 deletions vault/identity_store_oidc.go
Expand Up @@ -634,6 +634,7 @@ func (i *IdentityStore) pathOIDCDeleteKey(ctx context.Context, req *logical.Requ

roleNames, err := i.roleNamesReferencingTargetKeyName(ctx, req, targetKeyName)
if err != nil {
i.oidcLock.Unlock()
return nil, err
}

Expand Down

0 comments on commit d0c0571

Please sign in to comment.