From: Howard Chu Date: Fri, 4 Mar 2005 09:26:50 +0000 (+0000) Subject: Fix schema init sequence X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8573640ff99e6a8f9c63703f543966301953cf62;p=openldap Fix schema init sequence --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 9aa87ea91a..b49c6c5325 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -312,17 +312,17 @@ slap_tool_init( } #endif - rc = slap_init( mode, progname ); + rc = slap_schema_init(); if ( rc != 0 ) { - fprintf( stderr, "%s: slap_init failed!\n", progname ); + fprintf( stderr, "%s: slap_schema_init failed!\n", progname ); exit( EXIT_FAILURE ); } - rc = slap_schema_init(); + rc = slap_init( mode, progname ); if ( rc != 0 ) { - fprintf( stderr, "%s: slap_schema_init failed!\n", progname ); + fprintf( stderr, "%s: slap_init failed!\n", progname ); exit( EXIT_FAILURE ); }