Skip to content

Fix CertificateSsh constructor #1469

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

Merged
merged 1 commit into from
Jul 20, 2017
Merged

Fix CertificateSsh constructor #1469

merged 1 commit into from
Jul 20, 2017

Conversation

rmunn
Copy link
Contributor

@rmunn rmunn commented Jul 8, 2017

Should fix #1383.

If this looks too simple, see https://stackoverflow.com/q/44870128/ where I asked about this code to make sure that I wasn't missing something. Three people (the one who commented and the two who upvoted it) agreed that this simple-looking code is fine: there was no need for pointer arithmetic in this constructor. (And there is probably no need for pointer arithmetic in the ToPointer() method either, but one fix at a time).

Copy link
Member

@bording bording left a comment

Choose a reason for hiding this comment

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

@rmunn Thanks for the PR!

This looks like a good change to me. Before it gets merged, I'd like for @ethomson to take a look to make sure I haven't missed something in my review.

@ethomson
Copy link
Member

Cool, thanks @rmunn for the fix, and @bording for the review!

@ethomson ethomson merged commit 3e9de2e into libgit2:master Jul 20, 2017
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.

CertificateSsh constructor looks wrong
3 participants