mirror of
https://github.com/curl/curl.git
synced 2026-07-24 05:27:15 +03:00
darwinssl: Fix exception when processing a client-side certificate file
if no error was raised by the API but the SecIdentityRef was null Fixes #1450
This commit is contained in:
parent
32c27f9e98
commit
c58063b4f8
1 changed files with 1 additions and 1 deletions
|
|
@ -1404,7 +1404,7 @@ static CURLcode darwinssl_connect_step1(struct connectdata *conn,
|
|||
else
|
||||
err = CopyIdentityWithLabel(ssl_cert, &cert_and_key);
|
||||
|
||||
if(err == noErr) {
|
||||
if(err == noErr && cert_and_key) {
|
||||
SecCertificateRef cert = NULL;
|
||||
CFTypeRef certs_c[1];
|
||||
CFArrayRef certs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue