Skip to content
Snippets Groups Projects
Commit 170de200 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#1734 return error on bad config file

parent bb17493d
No related branches found
No related tags found
No related merge requests found
......@@ -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" );
......
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