]> git.sur5r.net Git - openldap/commitdiff
ITS#1734 return error on bad config file
authorHoward Chu <hyc@openldap.org>
Thu, 11 Apr 2002 08:51:35 +0000 (08:51 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 11 Apr 2002 08:51:35 +0000 (08:51 +0000)
servers/slapd/tools/slapcommon.c

index bcea08993ff788d556dfc9a97ebbd94afb4f20d9..abe5b7abeb754ee50f234627758e243640aa7887 100644 (file)
@@ -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" );