aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnutls_hooks.c')
-rw-r--r--src/gnutls_hooks.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c
index 7b7e2b3..4364add 100644
--- a/src/gnutls_hooks.c
+++ b/src/gnutls_hooks.c
@@ -57,6 +57,7 @@ int
57mgs_hook_pre_config(apr_pool_t * pconf, 57mgs_hook_pre_config(apr_pool_t * pconf,
58 apr_pool_t * plog, apr_pool_t * ptemp) 58 apr_pool_t * plog, apr_pool_t * ptemp)
59{ 59{
60int ret;
60 61
61#if APR_HAS_THREADS 62#if APR_HAS_THREADS
62 ap_mpm_query(AP_MPMQ_IS_THREADED, &mpm_is_threaded); 63 ap_mpm_query(AP_MPMQ_IS_THREADED, &mpm_is_threaded);
@@ -67,8 +68,10 @@ mgs_hook_pre_config(apr_pool_t * pconf,
67 mpm_is_threaded = 0; 68 mpm_is_threaded = 0;
68#endif 69#endif
69 70
70 gnutls_global_init(); 71 ret = gnutls_global_init();
71 72 if (ret < 0) /* FIXME: can we print here? */
73 exit(ret);
74
72 apr_pool_cleanup_register(pconf, NULL, mgs_cleanup_pre_config, 75 apr_pool_cleanup_register(pconf, NULL, mgs_cleanup_pre_config,
73 apr_pool_cleanup_null); 76 apr_pool_cleanup_null);
74 77