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

Initialize the TLS environment *after* reading the config files.

parent fd49eacc
No related branches found
No related tags found
No related merge requests found
......@@ -383,17 +383,17 @@ 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 );
goto destroy;
}
#ifdef HAVE_TLS
ldap_pvt_tls_init();
ldap_pvt_tls_init_def_ctx();
#endif
tcps = set_socket( inetd ? NULL : &bind_addr );
if ( tcps == -1 )
goto destroy;
......
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