mirror of
https://github.com/curl/curl.git
synced 2026-07-24 19:17:20 +03:00
openssl: only try engine/provider if a certificate file/name is provided
Bug: https://issues.oss-fuzz.com/issues/435278402 Closes #19197
This commit is contained in:
parent
d51d19bd06
commit
9e15b07638
1 changed files with 2 additions and 2 deletions
|
|
@ -1721,12 +1721,12 @@ static CURLcode client_cert(struct Curl_easy *data,
|
|||
break;
|
||||
|
||||
case SSL_FILETYPE_ENGINE:
|
||||
if(!engineload(data, ctx, cert_file))
|
||||
if(!cert_file || !engineload(data, ctx, cert_file))
|
||||
return CURLE_SSL_CERTPROBLEM;
|
||||
break;
|
||||
|
||||
case SSL_FILETYPE_PROVIDER:
|
||||
if(!providerload(data, ctx, cert_file))
|
||||
if(!cert_file || !providerload(data, ctx, cert_file))
|
||||
return CURLE_SSL_CERTPROBLEM;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue