The branch openssl-3.0 has been updated via 0ec286a62840c2a0de4b7a1b5063ace3338a925f (commit) from 46119286c16341734b3cb60945fb07d1ea30eb81 (commit)
- Log ----------------------------------------------------------------- commit 0ec286a62840c2a0de4b7a1b5063ace3338a925f Author: xkernel <xkernel.w...@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 <beld...@gmail.com> Reviewed-by: Matt Caswell <m...@openssl.org> Reviewed-by: Paul Dale <pa...@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17740) (cherry picked from commit 8d215738a05350baa583c47a2c52371d9cff3197) ----------------------------------------------------------------------- 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 9ac1db51b3..3b7be54331 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; /*