From: Gary Williams Date: Wed, 21 Jul 1999 15:08:50 +0000 (+0000) Subject: set tls_port to zero if !defined(HAVE_TLS) to satisfy assert in slapd_daemon_init X-Git-Tag: OPENLDAP_REL_ENG_2_BP~75 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b8b68f066887541f7e95732915cb00398685e000;p=openldap set tls_port to zero if !defined(HAVE_TLS) to satisfy assert in slapd_daemon_init --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index d8acd705ab..6d310de8c3 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -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;