]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/cancel.c
ITS#6024 Don't send cookies without csn.
[openldap] / servers / slapd / cancel.c
index dd4c79730cd86f505eb0cbaf9694686dff4c5cef..ce0b1fdbc06c5bbf7d9d994b34df8e8d56d25b32 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2007 The OpenLDAP Foundation.
+ * Copyright 1998-2009 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -70,7 +70,7 @@ int cancel_extop( Operation *op, SlapReply *rs )
                        LDAP_STAILQ_REMOVE( &op->o_conn->c_pending_ops, o, Operation, o_next );
                        LDAP_STAILQ_NEXT(o, o_next) = NULL;
                        op->o_conn->c_n_ops_pending--;
-                       slap_op_free( o );
+                       slap_op_free( o, NULL );
                        ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
                        return LDAP_SUCCESS;
                }