From e74ff638ba6a5e23320df701b2dfe2a35ea1a22f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Wed, 14 Jul 1999 19:49:39 +0000 Subject: [PATCH] Parsing of flag -T was falling through to the default case. Init the TLS environment if necessary. Lots of things needed here, in particular, preparing properly the default context. --- servers/slapd/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/slapd/main.c b/servers/slapd/main.c index 2da444a9fc..e9781c60bb 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -344,6 +344,7 @@ int main( int argc, char **argv ) #ifdef HAVE_TLS case 'T': /* Bind on TLS port */ use_tls_port = 1; + break; #endif default: usage( argv[0] ); @@ -382,6 +383,11 @@ int main( int argc, char **argv ) goto destroy; } +#ifdef HAVE_TLS + ldap_pvt_tls_init(); + ldap_pvt_tls_init_def_ctx(); +#endif + if ( read_config( configfile ) != 0 ) { rc = 1; SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 19 ); -- 2.39.5