[openssl] master update

Dr. Paul Dale pauli at openssl.org
Tue Feb 22 23:23:22 UTC 2022


The branch master has been updated
       via  8d215738a05350baa583c47a2c52371d9cff3197 (commit)
      from  b0317df2311769e02d9ceb4e7afe19521f8ffbf1 (commit)


- Log -----------------------------------------------------------------
commit 8d215738a05350baa583c47a2c52371d9cff3197
Author: xkernel <xkernel.wang at foxmail.com>
Date:   Mon Feb 21 15:29:25 2022 +0800

    check *libctx which is allocated by OSSL_LIB_CTX_new()
    
    Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/17740)

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

Summary of changes:
 test/tls-provider.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/tls-provider.c b/test/tls-provider.c
index 7bff6e7406..c658514854 100644
--- a/test/tls-provider.c
+++ b/test/tls-provider.c
@@ -840,6 +840,9 @@ int tls_provider_init(const OSSL_CORE_HANDLE *handle,
 {
     OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new();
 
+    if (libctx == NULL)
+        return 0;
+
     *provctx = libctx;
 
     /*


More information about the openssl-commits mailing list