mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
Initialize the TLS environment *after* reading the config files.
This commit is contained in:
parent
fd49eacc4b
commit
edb1d671f8
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue