gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 146/254: darwinssl: Fix exception when processing a


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 146/254: darwinssl: Fix exception when processing a client-side certificate file if no error was raised by the API but the SecIdentityRef was null
Date: Sat, 17 Jun 2017 16:52:58 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit c58063b4f828f47e4a7ed6c8c6cbd286d1162afc
Author: Nick Zitzmann <address@hidden>
AuthorDate: Tue May 16 19:21:12 2017 -0500

    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
---
 lib/vtls/darwinssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]