diff --git a/src/libsodium/sodium/core.c b/src/libsodium/sodium/core.c index e3d105f2..bf197b76 100644 --- a/src/libsodium/sodium/core.c +++ b/src/libsodium/sodium/core.c @@ -12,9 +12,10 @@ sodium_init(void) if (initialized != 0) { return 1; } - initialized = 1; if (crypto_onetimeauth_pick_best_implementation() == NULL) { return -1; } + initialized = 1; + return 0; }