diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-05-27 22:31:51 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-05-27 22:31:51 -0300 |
commit | a97299020b27894e3390ecc52d6f7a4e2c55d818 (patch) | |
tree | e7f4f6321a99de2573dbcc64f68135c047509a4c | |
parent | 5571d277b93b62c73568b78c652c85b2e8e95183 (diff) |
Handle SSL_CTX_new failure
-rw-r--r-- | src/common/ssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c index 0eb78bd7..d33e8fd2 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -87,6 +87,7 @@ _SSL_context_init (void (*info_cb_func)) SSLeay_add_ssl_algorithms (); SSL_load_error_strings (); ctx = SSL_CTX_new (SSLv23_client_method ()); + if (!ctx) return(ctx); SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_BOTH); SSL_CTX_set_timeout (ctx, 300); |