Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streams: report OpenSSL errors if global init fails #4710

Merged
merged 1 commit into from
Jul 8, 2018

Conversation

pks-t
Copy link
Member

@pks-t pks-t commented Jun 29, 2018

In case when the global initialization of the OpenSSL stream fails, the
user is left without any hint as to what went wrong as we do not provide
any error message at all. This commit refactors the init function to
have a common error path, which now also sets an error message including
the error string provided by OpenSSL.

In case when the global initialization of the OpenSSL stream fails, the
user is left without any hint as to what went wrong as we do not provide
any error message at all. This commit refactors the init function to
have a common error path, which now also sets an error message including
the error string provided by OpenSSL.
@pks-t
Copy link
Member Author

pks-t commented Jul 6, 2018

Oh. Embarassing syntax error. I shouldn't push an untested state 😅

@ethomson ethomson merged commit 290292b into libgit2:master Jul 8, 2018
@ethomson
Copy link
Member

ethomson commented Jul 8, 2018

Thanks! 👍

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.

None yet

2 participants