mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Moved call of schema_init from main to read_config.
This commit is contained in:
parent
e8a45b52b3
commit
803d6d1204
@ -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 New Issue
Block a user