mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05:00
Moved call of schema_init from main to read_config.
This commit is contained in:
parent
e8a45b52b3
commit
803d6d1204
2 changed files with 7 additions and 5 deletions
|
|
@ -59,6 +59,13 @@ read_config( char *fname )
|
|||
|
||||
Debug( LDAP_DEBUG_CONFIG, "reading config file %s\n", fname, 0, 0 );
|
||||
|
||||
if ( schema_init( ) != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"error initializing the schema\n",
|
||||
0, 0, 0 );
|
||||
return( 1 );
|
||||
}
|
||||
|
||||
fp_getline_init( &lineno );
|
||||
|
||||
while ( (line = fp_getline( fp, &lineno )) != NULL ) {
|
||||
|
|
|
|||
|
|
@ -268,11 +268,6 @@ main( int argc, char **argv )
|
|||
goto destroy;
|
||||
}
|
||||
|
||||
if ( schema_init( ) != 0 ) {
|
||||
rc = 1;
|
||||
goto destroy;
|
||||
}
|
||||
|
||||
if ( read_config( configfile ) != 0 ) {
|
||||
rc = 1;
|
||||
goto destroy;
|
||||
|
|
|
|||
Loading…
Reference in a new issue