From ddffda7a150cd3abdb6ec392b514a250e91e0c19 Mon Sep 17 00:00:00 2001
From: Chris Lundquist <chris.lundquist@github.com>
Date: Tue, 14 Jan 2014 18:33:13 -0800
Subject: [PATCH 06/22] [network] set_thread_cbs so we initialize the right
 threading mode in gcry_check_version

Signed-off-by: Florian Forster <octo@collectd.org>
---
 src/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network.c b/src/network.c
index d0ff6bc..be82c6f 100644
--- a/src/network.c
+++ b/src/network.c
@@ -500,8 +500,8 @@ static void network_init_gcrypt (void) /* {{{ */
   if (gcry_control (GCRYCTL_ANY_INITIALIZATION_P))
     return;
 
-  gcry_check_version (NULL); /* before calling any other functions */
   gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+  gcry_check_version (NULL); /* before calling *almost* any other functions */
   gcry_control (GCRYCTL_INIT_SECMEM, 32768);
   gcry_control (GCRYCTL_INITIALIZATION_FINISHED);
 } /* }}} void network_init_gcrypt */
-- 
1.9.3

