Set initialized=1 when everything has actually been initialized
This commit is contained in:
parent
efb3d9919f
commit
076eb56e24
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user