Skip to content

Commit

Permalink
backport of commit a2c263b (#24422)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Miller <[email protected]>
  • Loading branch information
1 parent d71ddce commit 22e1781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vault/seal/seal.go
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ func (a *access) Decrypt(ctx context.Context, ciphertext *MultiWrapValue, option
for _, sealWrapper := range wrappersByPriority {
keyId, err := sealWrapper.Wrapper.KeyId(ctx)
if err != nil {
reportResult(sealWrapper.Name, nil, false, err)
go reportResult(sealWrapper.Name, nil, false, err)
continue
}
if keyId == k {
Expand Down Expand Up @@ -757,6 +757,7 @@ GATHER_RESULTS:
break GATHER_RESULTS
}
}
close(resultCh)

// No wrapper was able to decrypt the value, return an error
if len(errs) > 0 {
Expand Down

0 comments on commit 22e1781

Please sign in to comment.