From 517e02f03e246f32a740958237f8e6de03796cd5 Mon Sep 17 00:00:00 2001 From: Nokis Mavrogiannopoulos Date: Sat, 15 Dec 2007 13:59:48 +0000 Subject: print error if preconfiguration fails --- src/gnutls_hooks.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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; #endif ret = gnutls_global_init(); - if (ret < 0) /* FIXME: can we print here? */ - exit(ret); + if (ret < 0) /* FIXME: can we print here? */ { + fprintf(stderr, "gnutls_global_init: %s\n", gnutls_strerror(ret)); + return -3; + } ret = gnutls_global_init_extra(); - if (ret < 0) /* FIXME: can we print here? */ - exit(ret); + if (ret < 0) { /* FIXME: can we print here? */ + fprintf(stderr, "gnutls_global_init_extra: %s\n", gnutls_strerror(ret)); + return -3; + } apr_pool_cleanup_register(pconf, NULL, mgs_cleanup_pre_config, apr_pool_cleanup_null); -- cgit