|
@@ -589,7 +589,7 @@ BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert)
|
|
|
BIO_get_cipher_ctx(etmp, &evp_ctx);
|
|
|
if (EVP_CipherInit_ex(evp_ctx, cipher, NULL, NULL, NULL, 0) <= 0)
|
|
|
goto err;
|
|
|
- if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) < 0)
|
|
|
+ if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) <= 0)
|
|
|
goto err;
|
|
|
/* Generate random key as MMA defence */
|
|
|
len = EVP_CIPHER_CTX_get_key_length(evp_ctx);
|