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

Fix a bug I introduced that would make toxcore fail to initialise a second time #32

Merged
merged 1 commit into from Aug 11, 2016

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Aug 11, 2016

sodium_init returns 1 when the library was already initialised. Toxcore code
wasn't prepared to handle sodium errors, so it thought it was an allocation
error.

This error is still not handled correctly. If crypto fails to initialise, it
will think it's an allocation error. Fixing this requires too many code changes,
so must be done later.


This change is Reviewable

…econd time.

sodium_init returns 1 when the library was already initialised. Toxcore code
wasn't prepared to handle sodium errors, so it thought it was an allocation
error.

This error is still not handled correctly. If crypto fails to initialise, it
will think it's an allocation error. Fixing this requires too many code changes,
so must be done later.
@iphydf iphydf changed the title Fix a bug I introduced that would make toxcore fail to initialise a s… Fix a bug I introduced that would make toxcore fail to initialise a second time Aug 11, 2016
@zetok
Copy link

zetok commented Aug 11, 2016

:lgtm:


Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@iphydf iphydf merged commit 5d26ce1 into TokTok:master Aug 11, 2016
@GrayHatter
Copy link

I wish toxcore had more comments...

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

3 participants