summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fastd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 2d0b47a..8723add 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -481,7 +481,8 @@ static inline void init_config(int *status_fd) {
/* Init crypto libs here as fastd_config_check() initializes the methods and might need them */
#ifdef HAVE_LIBSODIUM
- sodium_init();
+ if (sodium_init() < 0)
+ exit_error("unable to initialize libsodium");
#endif
#ifdef ENABLE_OPENSSL