ITS#8303 Fixed an assertion error during test022

The error was introduced with
commit 6cafdfa8d8
This commit is contained in:
Nadezhda Ivanova 2016-02-09 15:26:38 +02:00 committed by Howard Chu
parent 4d3a54835c
commit 26f88817f6

View File

@ -255,21 +255,6 @@ over_back_response ( Operation *op, SlapReply *rs )
return rc;
}
static int
over_back_response_cleanup(Operation *op, SlapReply *rs)
{
if (rs->sr_type == REP_RESULT) {
if (op->o_callback != NULL) {
slap_callback *sc = op->o_callback;
op->o_callback = sc->sc_next;
free( sc );
}
}
return 0;
}
static int
over_access_allowed(
Operation *op,
@ -758,7 +743,7 @@ over_op_func(
db.be_flags |= SLAP_DBFLAG_OVERLAY;
op->o_bd = &db;
}
cb->sc_cleanup = over_back_response_cleanup;
cb->sc_cleanup = NULL;
cb->sc_response = over_back_response;
cb->sc_writewait = NULL;
cb->sc_next = op->o_callback;