]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix possible null pointer dereference.
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Fri, 2 Jan 2026 17:36:39 +0000 (18:36 +0100)
committerNeil Horman <nhorman@openssl.org>
Mon, 5 Jan 2026 14:36:06 +0000 (09:36 -0500)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/29537)

test/tls-provider.c

index bbc31689415aafbbc03888d15e30ed06ca3ead10..0a9da8ae869a4768f8b1624fab14982d9ef1c0e4 100644 (file)
@@ -3227,6 +3227,11 @@ int tls_provider_init(const OSSL_CORE_HANDLE *handle,
         }
     }
 
+    if (c_obj_create == NULL || c_obj_add_sigid == NULL) {
+        ERR_raise(ERR_LIB_USER, XORPROV_R_OBJ_CREATE_ERR);
+        goto err;
+    }
+
     /*
      * Register algorithms manually as add_provider_sigalgs is
      * only called during session establishment -- too late for