]> git.sur5r.net Git - openldap/commitdiff
TLS initialization fix
authorKurt Zeilenga <kurt@openldap.org>
Fri, 22 Jun 2001 18:08:44 +0000 (18:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 22 Jun 2001 18:08:44 +0000 (18:08 +0000)
servers/slurpd/main.c

index 56ddbb10e0196b7f0eb61604bb283c9a90e29b4e..2a7868724e7e45cd387469ffc83cd85836ba0c71 100644 (file)
@@ -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.