From: Howard Chu Date: Thu, 11 Apr 2002 08:51:35 +0000 (+0000) Subject: ITS#1734 return error on bad config file X-Git-Tag: OPENLDAP_REL_ENG_2_MP~223 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=170de200f864920b99afbcb4b8085992bb4aaf18;p=openldap ITS#1734 return error on bad config file --- diff --git a/servers/slapd/tools/slapcommon.c b/servers/slapd/tools/slapcommon.c index bcea08993f..abe5b7abeb 100644 --- a/servers/slapd/tools/slapcommon.c +++ b/servers/slapd/tools/slapcommon.c @@ -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" );