Skip to content

Commit 04094f5

Browse files
committed
SSL validation: cope with GIT_PASSTHROUGH
The passthrough error code for SSL validation means that the caller declined to act; we should just use our default validation in this case.
1 parent 70b393b commit 04094f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/SmartSubtransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public int CertificateCheck(Certificate cert, bool valid, string hostname)
8181
Marshal.FreeHGlobal(certPtr);
8282
}
8383

84-
if (ret > 0)
84+
if (ret > 0 || ret == (int)GitErrorCode.PassThrough)
8585
{
8686
ret = valid ? 0 : -1;
8787
}

0 commit comments

Comments
 (0)