Commit c58063b4 authored by Nick Zitzmann's avatar Nick Zitzmann
Browse files

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
parent 32c27f9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;