summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 2a5c3f83..6dbb925e 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -345,7 +345,10 @@ static void init(int argc,
prog = argv[1];
ai.pid = getpid();
-
+#ifdef HAVE_LIBGCRYPT
+ if (!gcry_check_version(GCRYPT_VERSION))
+ goto fail_fds;
+#endif
ai.fds = bmp_create(PROG_MAX_FLOWS - PROG_RES_FDS, PROG_RES_FDS);
if (ai.fds == NULL)
goto fail_fds;