diff options
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index c6cf6ed4..244512c0 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -451,7 +451,10 @@ int networking_at_startup(void) | |||
451 | #ifdef USE_RANDOMBYTES_STIR | 451 | #ifdef USE_RANDOMBYTES_STIR |
452 | randombytes_stir(); | 452 | randombytes_stir(); |
453 | #else | 453 | #else |
454 | sodium_init(); | 454 | |
455 | if (sodium_init() != 0) | ||
456 | return -1; | ||
457 | |||
455 | #endif /*USE_RANDOMBYTES_STIR*/ | 458 | #endif /*USE_RANDOMBYTES_STIR*/ |
456 | 459 | ||
457 | #endif/*VANILLA_NACL*/ | 460 | #endif/*VANILLA_NACL*/ |