Bryan Paxton e18f9b7337 Ensure we never return 1 from sodium_init() onload
sodium_init() will return 0 on success, -1 on failure, and 1 if sodium is
already loaded and initialized (which is not an error). In the case
where libsodium is already initialized and the system is restarted we
may return 1 from onload nif function resulting in a crash.

- change the call to sodium_init() to check for an error return (-1) and
  return -1 explicitly in this case, otherwise always return zero at the
  end of our onload function.
2020-07-26 15:09:53 -05:00
..
2020-02-05 10:56:18 +01:00
2020-02-05 12:10:02 +01:00
2020-02-05 12:08:28 +01:00
2020-02-06 11:48:57 +01:00
2020-02-06 11:48:57 +01:00
2020-02-06 16:04:23 +01:00
2020-02-05 11:16:56 +01:00
2020-01-20 15:31:44 +01:00
2020-04-19 19:07:23 +02:00
2020-04-19 19:07:23 +02:00
2020-02-05 13:16:35 +01:00
2020-01-20 15:31:44 +01:00
2020-02-04 14:00:02 +01:00
2020-01-20 15:31:44 +01:00
2020-04-17 13:52:33 +02:00
2020-02-04 14:00:02 +01:00
2020-02-06 11:48:57 +01:00
2020-01-20 15:31:44 +01:00
2020-03-07 12:01:27 +01:00
2020-02-06 13:57:49 +01:00