1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-12 02:34:59 +03:00

Merge pull request #1873 from icy17/master

fix potential crash.
This commit is contained in:
Ilya Shipitsin
2023-08-05 23:09:56 +02:00
committed by GitHub

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 *ctx = SSL_CTX_new(SSLv23_method());
if(ctx == NULL)
{
return NULL;
}
// It resets some parameters.
if (server_mode)
{