Skip to content

stransport: provide error message on trust failures#4444

Merged
pks-t merged 1 commit into
libgit2:masterfrom
tiennou:fix/4440
Dec 15, 2017
Merged

stransport: provide error message on trust failures#4444
pks-t merged 1 commit into
libgit2:masterfrom
tiennou:fix/4440

Conversation

@tiennou
Copy link
Copy Markdown
Contributor

@tiennou tiennou commented Dec 13, 2017

Fixes #4440

Comment thread src/streams/stransport.c Outdated
@@ -84,6 +84,7 @@ static int stransport_connect(git_stream *stream)

if (sec_res == kSecTrustResultDeny || sec_res == kSecTrustResultRecoverableTrustFailure ||
sec_res == kSecTrustResultFatalTrustFailure)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you may want braces for this if statement now that it's two expressions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah right 😆 . I miss my goto fails so much.

@tiennou
Copy link
Copy Markdown
Contributor Author

tiennou commented Dec 14, 2017

Fixed !

@pks-t pks-t merged commit c342c13 into libgit2:master Dec 15, 2017
@pks-t
Copy link
Copy Markdown
Member

pks-t commented Dec 15, 2017

Thanks a lot @tiennou, this look obviously correct.

@tiennou tiennou deleted the fix/4440 branch December 15, 2017 17:15
@pks-t pks-t added the backport label Jan 11, 2018
@pks-t pks-t mentioned this pull request Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants