]> git.sur5r.net Git - openldap/commitdiff
set tls_port to zero if !defined(HAVE_TLS) to satisfy assert in slapd_daemon_init
authorGary Williams <gwilliams@openldap.org>
Wed, 21 Jul 1999 15:08:50 +0000 (15:08 +0000)
committerGary Williams <gwilliams@openldap.org>
Wed, 21 Jul 1999 15:08:50 +0000 (15:08 +0000)
servers/slapd/main.c

index d8acd705ab0a822c9a5d4d9721c8a5901c44c316..6d310de8c3bd5c1a8e8bf2d9e3c9d3bd969c6742 100644 (file)
@@ -149,7 +149,11 @@ int main( int argc, char **argv )
        int         serverMode = SLAP_SERVER_MODE;
 
        int port = LDAP_PORT;
+#ifdef HAVE_TLS
        int tls_port = LDAPS_PORT;
+#else
+       int tls_port = 0;
+#endif
 
        g_argc = argc;
        g_argv = argv;