mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
ITS#1734 return error on bad config file
This commit is contained in:
parent
bb17493d31
commit
170de200f8
1 changed files with 6 additions and 1 deletions
|
|
@ -195,7 +195,12 @@ slap_tool_init(
|
|||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
read_config( conffile );
|
||||
rc = read_config( conffile );
|
||||
|
||||
if ( rc != 0 ) {
|
||||
fprintf( stderr, "%s: bad configuration file!\n", progname );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
if ( !nbackends ) {
|
||||
fprintf( stderr, "No databases found in config file\n" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue