fix nullptr deref

Co-authored-by: icy17 <1061499390@qq.com>
This commit is contained in:
Ilya Shipitsin 2023-11-19 10:57:28 +01:00
parent e74d9dec25
commit e6792d8893
1 changed files with 4 additions and 0 deletions

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