aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nokis Mavrogiannopoulos 2007-12-15 13:59:48 +0000
committerGravatar Nokis Mavrogiannopoulos 2007-12-15 13:59:48 +0000
commit517e02f03e246f32a740958237f8e6de03796cd5 (patch)
treea8e4fd17cb848e3200ee3159fc5f1b7a99a7701f /src
parent23ad409e52867bc8463cb580476d169198342ba8 (diff)
print error if preconfiguration fails
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);