]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapauth.c
ITS#5972 Added newCookie sync info messages.
[openldap] / servers / slapd / slapauth.c
index 92799ac0c9d4c5ff06b99e3522744c93809d15fd..e6a1b8916f3904e360e2cd56c6c648c8d3596d77 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.
  *
@@ -166,7 +167,8 @@ destroy:;
        if ( !BER_BVISNULL( &authzID ) ) {
                op->o_tmpfree( authzID.bv_val, op->o_tmpmemctx );
        }
-       slap_tool_destroy();
+       if ( slap_tool_destroy())
+               rc = EXIT_FAILURE;
 
        return rc;
 }