]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#1613 fix
authorKurt Zeilenga <kurt@openldap.org>
Sun, 5 May 2002 18:07:26 +0000 (18:07 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 5 May 2002 18:07:26 +0000 (18:07 +0000)
servers/slurpd/main.c

index a7ede8959c87d8703c9440ee28c3a8d0d7fd47d6..19949128d31d294996029b9619ad24eadaa91e8a 100644 (file)
@@ -30,6 +30,7 @@
 #include "globals.h"
 #include "lutil.h"
 
+#include <ldap_pvt.h>
 
 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
      */