mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#7414 fix slapo-rwm modrdn cleanup
newSup is NULL if it was specified, but same as old Sup.
This commit is contained in:
parent
c1800082cc
commit
d42c7c4937
1 changed files with 6 additions and 4 deletions
|
|
@ -107,10 +107,12 @@ rwm_op_rollback( Operation *op, SlapReply *rs, rwm_op_state *ros )
|
||||||
break;
|
break;
|
||||||
case LDAP_REQ_MODRDN:
|
case LDAP_REQ_MODRDN:
|
||||||
if ( op->orr_newSup != ros->orr_newSup ) {
|
if ( op->orr_newSup != ros->orr_newSup ) {
|
||||||
|
if ( op->orr_newSup ) {
|
||||||
ch_free( op->orr_newSup->bv_val );
|
ch_free( op->orr_newSup->bv_val );
|
||||||
ch_free( op->orr_nnewSup->bv_val );
|
ch_free( op->orr_nnewSup->bv_val );
|
||||||
op->o_tmpfree( op->orr_newSup, op->o_tmpmemctx );
|
op->o_tmpfree( op->orr_newSup, op->o_tmpmemctx );
|
||||||
op->o_tmpfree( op->orr_nnewSup, op->o_tmpmemctx );
|
op->o_tmpfree( op->orr_nnewSup, op->o_tmpmemctx );
|
||||||
|
}
|
||||||
op->orr_newSup = ros->orr_newSup;
|
op->orr_newSup = ros->orr_newSup;
|
||||||
op->orr_nnewSup = ros->orr_nnewSup;
|
op->orr_nnewSup = ros->orr_nnewSup;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue