aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Zitzmann <nickzman@gmail.com>2017-05-16 19:21:12 -0500
committerNick Zitzmann <nickzman@gmail.com>2017-05-16 19:21:12 -0500
commitc58063b4f828f47e4a7ed6c8c6cbd286d1162afc (patch)
tree3bb6a40041de4e8fd9756a25891c0bf6980094bb
parent32c27f9e98e3b6195b0e465df853a98a4702fb01 (diff)
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
-rw-r--r--lib/vtls/darwinssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c
index 270b3ddfb..041766541 100644
--- a/lib/vtls/darwinssl.c
+++ b/lib/vtls/darwinssl.c
@@ -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;