diff options
author | xkernel <xkernel.wang@foxmail.com> | 2022-02-21 15:29:25 +0800 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-02-23 10:23:10 +1100 |
commit | 8d215738a05350baa583c47a2c52371d9cff3197 (patch) | |
tree | 8f73f64d7110e00725d7eecce76b30a0b0f508b9 | |
parent | b0317df2311769e02d9ceb4e7afe19521f8ffbf1 (diff) |
check *libctx which is allocated by OSSL_LIB_CTX_new()
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17740)
-rw-r--r-- | test/tls-provider.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; /* |