]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slaptest.c
fix previous commit (ITS#5819)
[openldap] / servers / slapd / slaptest.c
index 6ad27ba7f0836e3972f728e55b8e6e2f212c9fdf..bf48c7e6414ce66b249d08108c35096e8148e33a 100644 (file)
@@ -1,6 +1,7 @@
+/* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2004-2006 The OpenLDAP Foundation.
+ * Copyright 2004-2008 The OpenLDAP Foundation.
  * Portions Copyright 2004 Pierangelo Masarati.
  * All rights reserved.
  *
@@ -104,9 +105,12 @@ slaptest( int argc, char **argv )
                }
        }
 
-       fprintf( stderr, "config file testing succeeded\n");
+       if ( !quiet ) {
+               fprintf( stderr, "config file testing succeeded\n");
+       }
 
-       slap_tool_destroy();
+       if ( slap_tool_destroy())
+               rc = EXIT_FAILURE;
 
        return rc;
 }