Moved call of schema_init from main to read_config.

This commit is contained in:
Julio Sánchez Fernández 1999-06-15 12:26:07 +00:00
parent e8a45b52b3
commit 803d6d1204
2 changed files with 7 additions and 5 deletions

View File

@ -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 ) {

View File

@ -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;