diff options
Diffstat (limited to 'web/server/h2o')
-rw-r--r-- | web/server/h2o/http_server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/server/h2o/http_server.c b/web/server/h2o/http_server.c index 3a46889c2..b94a7daeb 100644 --- a/web/server/h2o/http_server.c +++ b/web/server/h2o/http_server.c @@ -73,6 +73,10 @@ static int ssl_init() #else accept_ctx.ssl_ctx = SSL_CTX_new(TLS_server_method()); #endif + if (!accept_ctx.ssl_ctx) { + netdata_log_error("Could not allocate a new SSL_CTX"); + return -1; + } SSL_CTX_set_options(accept_ctx.ssl_ctx, SSL_OP_NO_SSLv2); |