summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-05-27 22:31:51 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-05-27 22:31:51 -0300
commita97299020b27894e3390ecc52d6f7a4e2c55d818 (patch)
treee7f4f6321a99de2573dbcc64f68135c047509a4c /src
parent5571d277b93b62c73568b78c652c85b2e8e95183 (diff)
Handle SSL_CTX_new failure
Diffstat (limited to 'src')
-rw-r--r--src/common/ssl.c1
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);