From: Chris Lundquist Date: Wed, 15 Jan 2014 02:33:13 +0000 (-0800) Subject: [network] set_thread_cbs so we initialize the right threading mode in gcry_check_version X-Git-Tag: collectd-5.4.1~1^2^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;ds=sidebyside;h=ddffda7a150cd3abdb6ec392b514a250e91e0c19;p=collectd.git [network] set_thread_cbs so we initialize the right threading mode in gcry_check_version Signed-off-by: Florian Forster --- diff --git a/src/network.c b/src/network.c index d0ff6bca..be82c6f5 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 */