1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 09:29:52 +03:00

Merge pull request #1929 from chipitsine/pr_1921_followup

fix nullptr deref
This commit is contained in:
Ilya Shipitsin 2023-12-01 17:18:40 +01:00 committed by GitHub
commit ff4b74afda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}