From: Julio Sánchez Fernández Date: Thu, 15 Jul 1999 21:07:01 +0000 (+0000) Subject: Initialize the TLS environment *after* reading the config files. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=edb1d671f838ae3a841d08816c0865e2f306b582;p=openldap Initialize the TLS environment *after* reading the config files. --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index e9781c60bb..d3972ca0f1 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -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;