diff options
author | Nokis Mavrogiannopoulos | 2007-12-03 21:09:43 +0000 |
---|---|---|
committer | Nokis Mavrogiannopoulos | 2007-12-03 21:09:43 +0000 |
commit | 56dd14991416e369ad7657add7e61495d18ae6b2 (patch) | |
tree | d0bd202ad9c319b176e0665cdb78593a1ec6ed80 /src/gnutls_hooks.c | |
parent | f8fa1f35348c471e27f0a416e4d9d5f660b5dfa0 (diff) |
added more error checks.
Diffstat (limited to 'src/gnutls_hooks.c')
-rw-r--r-- | src/gnutls_hooks.c | 7 |
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 | |||
57 | mgs_hook_pre_config(apr_pool_t * pconf, | 57 | mgs_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 | { |
60 | int 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 | ||