Adds missing unlock of RWMutex in OIDC delete key (#12916)
This commit is contained in:
parent
95e5cdd000
commit
a25cfe822e
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
identity/token: Adds missing call to unlock mutex in key deletion error handling
|
||||||
|
```
|
|
@ -703,6 +703,7 @@ func (i *IdentityStore) pathOIDCDeleteKey(ctx context.Context, req *logical.Requ
|
||||||
|
|
||||||
roleNames, err := i.roleNamesReferencingTargetKeyName(ctx, req, targetKeyName)
|
roleNames, err := i.roleNamesReferencingTargetKeyName(ctx, req, targetKeyName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
i.oidcLock.Unlock()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -715,6 +716,7 @@ func (i *IdentityStore) pathOIDCDeleteKey(ctx context.Context, req *logical.Requ
|
||||||
|
|
||||||
clientNames, err := i.clientNamesReferencingTargetKeyName(ctx, req, targetKeyName)
|
clientNames, err := i.clientNamesReferencingTargetKeyName(ctx, req, targetKeyName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
i.oidcLock.Unlock()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue