diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-11 18:09:20 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-11 18:14:54 +0100 |
commit | 5d26ce1cf5fb88f39a762b76c528a91690783840 (patch) | |
tree | dbc8e3da979c7d47d515ebeeb3f3988b8fee82d2 /other/bootstrap_node_packets.c | |
parent | fc330c1fa55003fa02928e27e146ab388fa65cdd (diff) |
Fix a bug I introduced that would make toxcore fail to initialise a second 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.
Diffstat (limited to 'other/bootstrap_node_packets.c')
0 files changed, 0 insertions, 0 deletions