fix nullptr deref

Co-authored-by: icy17 <1061499390@qq.com>
This commit is contained in:
Ilya Shipitsinandicy17 committed 2023-11-19 10:57:28 +01:00
1 parent e74d9dec25
commit e6792d8893
1 file changed
+4
+4
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);
}