1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

fix potential crash.

This commit is contained in:
icy17 2023-07-30 11:01:09 +00:00
parent eb785e08fe
commit 07733b29cb

View File

@ -15868,7 +15868,10 @@ void keylog_cb_func(const SSL* ssl, const char* line)
struct ssl_ctx_st *NewSSLCtx(bool server_mode) struct ssl_ctx_st *NewSSLCtx(bool server_mode)
{ {
struct ssl_ctx_st *ctx = SSL_CTX_new(SSLv23_method()); struct ssl_ctx_st *ctx = SSL_CTX_new(SSLv23_method());
if(ctx == NULL)
{
return NULL;
}
// It resets some parameters. // It resets some parameters.
if (server_mode) if (server_mode)
{ {