diff options
Diffstat (limited to 'src')
-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); |