From: Kurt Zeilenga Date: Fri, 22 Jun 2001 18:08:44 +0000 (+0000) Subject: TLS initialization fix X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1293 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f98a1bab886a157b1b8de6578cf0a45627242ab5;p=openldap TLS initialization fix --- diff --git a/servers/slurpd/main.c b/servers/slurpd/main.c index 56ddbb10e0..2a7868724e 100644 --- a/servers/slurpd/main.c +++ b/servers/slurpd/main.c @@ -48,6 +48,13 @@ main( /* initialize thread package */ ldap_pvt_thread_initialize(); +#ifdef HAVE_TLS + if( ldap_pvt_tls_init() || ldap_pvt_tls_init_def_ctx() ) { + fprintf( stderr, "TLS Initialization failed.\n" ); + exit( EXIT_FAILURE); + } +#endif + /* * Create and initialize globals. init_globals() also initializes * the main replication queue.