From f98a1bab886a157b1b8de6578cf0a45627242ab5 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 22 Jun 2001 18:08:44 +0000 Subject: [PATCH] TLS initialization fix --- servers/slurpd/main.c | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.39.5