summaryrefslogtreecommitdiffstats
path: root/test/tls-provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tls-provider.c')
-rw-r--r--test/tls-provider.c3
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;
/*