mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Don't ignore sodium_init() return value
This commit is contained in:
parent
f696af0fab
commit
68fd01f42a
1 changed files with 2 additions and 1 deletions
|
@ -1013,7 +1013,8 @@ static void opGenerateBinaryCacheKey(Strings opFlags, Strings opArgs)
|
|||
string publicKeyFile = *i++;
|
||||
|
||||
#if HAVE_SODIUM
|
||||
sodium_init();
|
||||
if (sodium_init() == -1)
|
||||
throw Error("could not initialise libsodium");
|
||||
|
||||
unsigned char pk[crypto_sign_PUBLICKEYBYTES];
|
||||
unsigned char sk[crypto_sign_SECRETKEYBYTES];
|
||||
|
|
Loading…
Reference in a new issue