Merge pull request #1929 from chipitsine/pr_1921_followup

fix nullptr deref
This commit is contained in:
Ilya Shipitsin authored and GitHub committed 2023-12-01 17:18:40 +01:00
commit ff4b74afda
1 file changed
+4
+4
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);
}