]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/tools/slapcommon.c
Use IPV6_V6ONLY on IPv6 sockets if available. This way we only get IPv6
[openldap] / 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" );