From edb1d671f838ae3a841d08816c0865e2f306b582 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Thu, 15 Jul 1999 21:07:01 +0000 Subject: [PATCH] Initialize the TLS environment *after* reading the config files. --- servers/slapd/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.39.5