mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Fix coverity issue: CID 1466484 - Remove dead code in PKCS7_dataInit()
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12847)
This commit is contained in:
parent
6e417f951c
commit
0f0b7dfbe5
@ -316,17 +316,12 @@ BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio)
|
||||
fetched_cipher = EVP_CIPHER_fetch(p7_ctx->libctx,
|
||||
EVP_CIPHER_name(evp_cipher),
|
||||
p7_ctx->propq);
|
||||
(void)ERR_pop_to_mark();
|
||||
if (fetched_cipher != NULL)
|
||||
cipher = fetched_cipher;
|
||||
else
|
||||
cipher = evp_cipher;
|
||||
|
||||
if (cipher == NULL) {
|
||||
(void)ERR_clear_last_mark();
|
||||
goto err;
|
||||
}
|
||||
(void)ERR_pop_to_mark();
|
||||
|
||||
if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, 1) <= 0)
|
||||
goto err;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user