]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slaptest.c
ITS#6150
[openldap] / servers / slapd / slaptest.c
index 84f87caeb5ca04cbc63565449bc9d36d768e3a20..fc72e852c2b79eadd28ae6b1a91be29b5547c397 100644 (file)
@@ -1,6 +1,7 @@
+/* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2004-2007 The OpenLDAP Foundation.
+ * Copyright 2004-2009 The OpenLDAP Foundation.
  * Portions Copyright 2004 Pierangelo Masarati.
  * All rights reserved.
  *
@@ -108,7 +109,8 @@ slaptest( int argc, char **argv )
                fprintf( stderr, "config file testing succeeded\n");
        }
 
-       slap_tool_destroy();
+       if ( slap_tool_destroy())
+               rc = EXIT_FAILURE;
 
        return rc;
 }