Skip to content
/ openssl Public
forked from openssl/openssl

Commit

Permalink
check *libctx which is allocated by OSSL_LIB_CTX_new()
Browse files Browse the repository at this point in the history
Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#17740)
  • Loading branch information
x2018 authored and paulidale committed Feb 22, 2022
1 parent b0317df commit 8d21573
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/tls-provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 8d21573

Please sign in to comment.