mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
Fix schema init sequence
This commit is contained in:
parent
5616daf9f8
commit
8573640ff9
@ -312,13 +312,6 @@ slap_tool_init(
|
||||
}
|
||||
#endif
|
||||
|
||||
rc = slap_init( mode, progname );
|
||||
|
||||
if ( rc != 0 ) {
|
||||
fprintf( stderr, "%s: slap_init failed!\n", progname );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
rc = slap_schema_init();
|
||||
|
||||
if ( rc != 0 ) {
|
||||
@ -326,6 +319,13 @@ slap_tool_init(
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
rc = slap_init( mode, progname );
|
||||
|
||||
if ( rc != 0 ) {
|
||||
fprintf( stderr, "%s: slap_init failed!\n", progname );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
if ( frontend_init() ) {
|
||||
fprintf( stderr, "%s: frontend_init failed!\n", progname );
|
||||
exit( EXIT_FAILURE );
|
||||
|
Loading…
Reference in New Issue
Block a user