mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#8964 Do not free original filter
This commit is contained in:
parent
6a5e30674b
commit
d40b357f5d
@ -125,11 +125,15 @@ rwm_op_rollback( Operation *op, SlapReply *rs, rwm_op_state *ros )
|
||||
break;
|
||||
case LDAP_REQ_SEARCH:
|
||||
op->o_tmpfree( ros->mapped_attrs, op->o_tmpmemctx );
|
||||
filter_free_x( op, op->ors_filter, 1 );
|
||||
op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
|
||||
op->ors_attrs = ros->ors_attrs;
|
||||
op->ors_filter = ros->ors_filter;
|
||||
op->ors_filterstr = ros->ors_filterstr;
|
||||
if ( op->ors_filter != ros->ors_filter ) {
|
||||
filter_free_x( op, op->ors_filter, 1 );
|
||||
op->ors_filter = ros->ors_filter;
|
||||
}
|
||||
if ( op->ors_filterstr.bv_val != ros->ors_filterstr.bv_val ) {
|
||||
op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
|
||||
op->ors_filterstr = ros->ors_filterstr;
|
||||
}
|
||||
break;
|
||||
case LDAP_REQ_EXTENDED:
|
||||
if ( op->ore_reqdata != ros->ore_reqdata ) {
|
||||
|
Loading…
Reference in New Issue
Block a user