From: Kurt Zeilenga Date: Sun, 5 May 2002 18:07:26 +0000 (+0000) Subject: ITS#1613 fix X-Git-Tag: OPENLDAP_REL_ENG_2_0_24~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b46835ea4c7963a9bab5399434a00973baf9d847;p=thirdparty%2Fopenldap.git ITS#1613 fix --- diff --git a/servers/slurpd/main.c b/servers/slurpd/main.c index a7ede8959c..19949128d3 100644 --- a/servers/slurpd/main.c +++ b/servers/slurpd/main.c @@ -30,6 +30,7 @@ #include "globals.h" #include "lutil.h" +#include int main( @@ -48,13 +49,6 @@ 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. @@ -81,6 +75,13 @@ main( exit( EXIT_FAILURE ); } +#ifdef HAVE_TLS + if( ldap_pvt_tls_init() || ldap_pvt_tls_init_def_ctx() ) { + fprintf( stderr, "TLS Initialization failed.\n" ); + exit( EXIT_FAILURE); + } +#endif + /* * Make sure our directory exists */