Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Nov 22, 2024
1 parent cae3698 commit 1c3d6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/pkcs7/pkcs7.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) {
}

// Check whether content decryption was successful
if (!BIO_get_cipher_status(bio)) {
if (1 != BIO_get_cipher_status(bio)) {
OPENSSL_PUT_ERROR(PKCS7, PKCS7_R_DECRYPT_ERROR);
goto err;
}
Expand Down

0 comments on commit 1c3d6ad

Please sign in to comment.