mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
kms: fix possible deadlock due to nested RLock calls. (#16136)
Signed-off-by: Andreas Auernhammer <hi@aead.dev>
This commit is contained in:
parent
09d4f8cd0f
commit
9b1e70e4f9
@ -303,7 +303,11 @@ func (c *kesClient) DecryptAll(ctx context.Context, keyID string, ciphertexts []
|
|||||||
|
|
||||||
plaintexts := make([][]byte, 0, len(ciphertexts))
|
plaintexts := make([][]byte, 0, len(ciphertexts))
|
||||||
for i := range ciphertexts {
|
for i := range ciphertexts {
|
||||||
plaintext, err := c.DecryptKey(keyID, ciphertexts[i], contexts[i])
|
ctxBytes, err := contexts[i].MarshalText()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
plaintext, err := c.client.Decrypt(ctx, keyID, ciphertexts[i], ctxBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user