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:
parent
e74d9dec25
commit
e6792d8893
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user