summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/streams/stransport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/streams/stransport.c b/src/streams/stransport.c
index 64a5dd76f..cca17bb94 100644
--- a/src/streams/stransport.c
+++ b/src/streams/stransport.c
@@ -83,8 +83,10 @@ static int stransport_connect(git_stream *stream)
}
if (sec_res == kSecTrustResultDeny || sec_res == kSecTrustResultRecoverableTrustFailure ||
- sec_res == kSecTrustResultFatalTrustFailure)
+ sec_res == kSecTrustResultFatalTrustFailure) {
+ giterr_set(GITERR_SSL, "untrusted connection error");
return GIT_ECERTIFICATE;
+ }
return 0;