[openssl] openssl-3.0 update

Dr. Paul Dale pauli at openssl.org
Sun Nov 7 22:57:01 UTC 2021


The branch openssl-3.0 has been updated
       via  0abb5703ba63bd82888837d60af6d8168601dd2f (commit)
      from  8c5016e65dc1c9369d48624823c0b2b1ff79a252 (commit)


- Log -----------------------------------------------------------------
commit 0abb5703ba63bd82888837d60af6d8168601dd2f
Author: Pauli <pauli at openssl.org>
Date:   Thu Nov 4 12:46:58 2021 +1000

    Address Coverity 1493387 Logically dead code
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16962)
    
    (cherry picked from commit 182cc644b3a3690bddfecba925486fefa421d6ec)

-----------------------------------------------------------------------

Summary of changes:
 crypto/evp/m_sigver.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c
index 2972734d8d..80570973dd 100644
--- a/crypto/evp/m_sigver.c
+++ b/crypto/evp/m_sigver.c
@@ -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;
 


More information about the openssl-commits mailing list