aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gnutls_hooks.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c
index 39fcd2b..6223d89 100644
--- a/src/gnutls_hooks.c
+++ b/src/gnutls_hooks.c
@@ -72,12 +72,16 @@ int ret;
72#endif 72#endif
73 73
74 ret = gnutls_global_init(); 74 ret = gnutls_global_init();
75 if (ret < 0) /* FIXME: can we print here? */ 75 if (ret < 0) /* FIXME: can we print here? */ {
76 exit(ret); 76 fprintf(stderr, "gnutls_global_init: %s\n", gnutls_strerror(ret));
77 return -3;
78 }
77 79
78 ret = gnutls_global_init_extra(); 80 ret = gnutls_global_init_extra();
79 if (ret < 0) /* FIXME: can we print here? */ 81 if (ret < 0) { /* FIXME: can we print here? */
80 exit(ret); 82 fprintf(stderr, "gnutls_global_init_extra: %s\n", gnutls_strerror(ret));
83 return -3;
84 }
81 85
82 apr_pool_cleanup_register(pconf, NULL, mgs_cleanup_pre_config, 86 apr_pool_cleanup_register(pconf, NULL, mgs_cleanup_pre_config,
83 apr_pool_cleanup_null); 87 apr_pool_cleanup_null);