X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/b50cfb8a0d4fc71877ae0bfcd7b28879886a2ac1..211af11eabdfa1226ee2c7aec25002a1d7b25567:/server/disorderd.c diff --git a/server/disorderd.c b/server/disorderd.c index 72a8e3d..74fc07e 100644 --- a/server/disorderd.c +++ b/server/disorderd.c @@ -209,7 +209,10 @@ int main(int argc, char **argv) { fix_path(); srand(time(0)); /* don't start the same every time */ /* gcrypt initialization */ + if(!gcry_check_version(NULL)) + disorder_fatal(0, "gcry_check_version failed"); gcry_control(GCRYCTL_INIT_SECMEM, 1); + gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); /* make sure we can't have more than FD_SETSIZE files open (event.c does * check but this provides an additional line of defence) */ if(getrlimit(RLIMIT_NOFILE, rl) < 0)