[openssl] OpenSSL_1_1_1-stable update

Dr. Paul Dale pauli at openssl.org
Thu Nov 21 04:36:05 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  f6f371d472262e9525107074d93828b68acdbbdf (commit)
      from  333853fae6512ff71bf1b6da951ca0069c878c92 (commit)


- Log -----------------------------------------------------------------
commit f6f371d472262e9525107074d93828b68acdbbdf
Author: Pauli <paul.dale at oracle.com>
Date:   Wed Nov 20 13:14:39 2019 +1000

    EVP p_lib: Add NULL check to EVP_PKEY_missing_parameters.
    
    Check for NULL and return error if so.
    This can possibly be called from apps/ca.c with a NULL argument.
    
    Reviewed-by: Paul Yang <kaishen.yy at antfin.com>
    (Merged from https://github.com/openssl/openssl/pull/10474)
    
    (cherry picked from commit ab5c77b4766e0992751d86560193ca42b49cf316)

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

Summary of changes:
 crypto/evp/p_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 72a23b4d5f..451bc95eae 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -102,7 +102,7 @@ int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
 
 int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey)
 {
-    if (pkey->ameth && pkey->ameth->param_missing)
+    if (pkey != NULL && pkey->ameth && pkey->ameth->param_missing)
         return pkey->ameth->param_missing(pkey);
     return 0;
 }


More information about the openssl-commits mailing list