Skip to content
Snippets Groups Projects
Commit e74ff638 authored by Julio Sánchez Fernández's avatar Julio Sánchez Fernández
Browse files

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.
parent 6d75d0f8
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment