1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 17:49:52 +03:00

fix nullptr deref

Co-authored-by: icy17 <1061499390@qq.com>
This commit is contained in:
Ilya Shipitsin 2023-11-19 10:57:28 +01:00
parent e74d9dec25
commit e6792d8893

View File

@ -5785,6 +5785,10 @@ SSL_PIPE *NewSslPipeEx2(bool server_mode, X *x, K *k, LIST *chain, DH_CTX *dh, b
}
ssl = SSL_new(ssl_ctx);
if (ssl == NULL)
{
return NULL;
}
SSL_set_ex_data(ssl, GetSslClientCertIndex(), clientcert);
}