Commit 56bbdf93 by Edward Thomson Committed by GitHub

Merge pull request #3886 from libgit2/cmn/copypeertrust-null

SecureTransport: handle NULL trust on success
parents c550c922 9884dd61
......@@ -67,6 +67,9 @@ int stransport_connect(git_stream *stream)
if ((ret = SSLCopyPeerTrust(st->ctx, &trust)) != noErr)
goto on_error;
if (!trust)
return GIT_ECERTIFICATE;
if ((ret = SecTrustEvaluate(trust, &sec_res)) != noErr)
goto on_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment