ITS#8752 accesslog: partially revert 3bb8b737ed

This commit is contained in:
Howard Chu 2018-02-21 19:48:02 +00:00
parent d5170d5f6e
commit 9fc6b894ec

View file

@ -1990,11 +1990,11 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
}
if ( doit ) {
slap_callback *cb = op->o_tmpcalloc( 1, sizeof( slap_callback ), op->o_tmpmemctx );
slap_callback *cb = op->o_tmpcalloc( 1, sizeof( slap_callback ), op->o_tmpmemctx ), *cb2;
cb->sc_cleanup = accesslog_mod_cleanup;
cb->sc_private = on;
cb->sc_next = op->o_callback;
op->o_callback = cb;
for ( cb2 = op->o_callback; cb2->sc_next; cb2 = cb2->sc_next );
cb2->sc_next = cb;
#ifdef RMUTEX_DEBUG
Debug( LDAP_DEBUG_SYNC,