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
1 changed files with 4 additions and 0 deletions

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