Skip to content
Snippets Groups Projects
Commit 803d6d12 authored by Julio Sánchez Fernández's avatar Julio Sánchez Fernández
Browse files

Moved call of schema_init from main to read_config.

parent e8a45b52
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment