From: Frederik Wedel-Heinen Date: Fri, 2 Jan 2026 17:36:39 +0000 (+0100) Subject: Fix possible null pointer dereference. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4185261efce35a08a581f7ba62bf3ee1a4fdfea7;p=thirdparty%2Fopenssl.git Fix possible null pointer dereference. Reviewed-by: Neil Horman Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/29537) --- diff --git a/test/tls-provider.c b/test/tls-provider.c index bbc31689415..0a9da8ae869 100644 --- a/test/tls-provider.c +++ b/test/tls-provider.c @@ -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