@cryptotaxi247 / netdata-1 / commits / b2ae9258a

fix potential crash bug. (#15605)

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

icy17 committed Jul 29, 2023 at 04:25 UTC b2ae9258a339cbf6f36436d6ef3ec4a8e94a1c8e
1 file changed +4
web/server/h2o/http_server.c
+4
@@ -73,6 +73,10 @@ static int ssl_init()
73 #else
74 accept_ctx.ssl_ctx = SSL_CTX_new(TLS_server_method());
75 #endif
76 + if (!accept_ctx.ssl_ctx) {
77 + netdata_log_error("Could not allocate a new SSL_CTX");
78 + return -1;
79 + }
80
81 SSL_CTX_set_options(accept_ctx.ssl_ctx, SSL_OP_NO_SSLv2);
82