mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
Address Coverity 1493387 Logically dead code
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16962)
This commit is contained in:
parent
73a815defe
commit
182cc644b3
@ -462,14 +462,14 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
|
||||
if (sigret == NULL || (ctx->flags & EVP_MD_CTX_FLAG_FINALISE) != 0)
|
||||
return pctx->op.sig.signature->digest_sign_final(pctx->op.sig.algctx,
|
||||
sigret, siglen,
|
||||
(sigret == NULL) ? 0 : *siglen);
|
||||
(siglen == NULL) ? 0 : *siglen);
|
||||
dctx = EVP_PKEY_CTX_dup(pctx);
|
||||
if (dctx == NULL)
|
||||
return 0;
|
||||
|
||||
r = dctx->op.sig.signature->digest_sign_final(dctx->op.sig.algctx,
|
||||
sigret, siglen,
|
||||
(sigret == NULL) ? 0 : *siglen);
|
||||
(siglen == NULL) ? 0 : *siglen);
|
||||
EVP_PKEY_CTX_free(dctx);
|
||||
return r;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user