mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-25 17:49:52 +03:00
Merge pull request #1929 from chipitsine/pr_1921_followup
fix nullptr deref
This commit is contained in:
commit
ff4b74afda
@ -5803,6 +5803,10 @@ SSL_PIPE *NewSslPipeEx3(bool server_mode, X *x, K *k, LIST *chain, DH_CTX *dh, b
|
||||
#endif
|
||||
|
||||
ssl = SSL_new(ssl_ctx);
|
||||
if (ssl == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SSL_set_ex_data(ssl, GetSslClientCertIndex(), clientcert);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user