0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-28 06:32:30 +00:00

fix potential crash bug. ()

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
This commit is contained in:
icy17 2023-07-29 04:25:04 +08:00 committed by GitHub
parent a615db0bc4
commit b2ae9258a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);