Skip to content

Commit

Permalink
Fix an infinite recursion in PKCS11 error conversion. (#1215)
Browse files Browse the repository at this point in the history
This PR fixes a potential endless recursion when converting an error in the PKCS11 signer.
  • Loading branch information
partim authored Jun 25, 2024
1 parent 5fb6835 commit 24a1d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commons/crypto/signing/signers/pkcs11/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ impl From<Pkcs11Error> for SignerError {

impl From<ProbeError<SignerError>> for InternalConnError {
fn from(err: ProbeError<SignerError>) -> Self {
err.into()
SignerError::from(err).into()
}
}

Expand Down

0 comments on commit 24a1d3d

Please sign in to comment.