mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
handle r_dn == r_ndn
This commit is contained in:
parent
12fa465fd9
commit
98fe6a81a0
1 changed files with 11 additions and 2 deletions
|
|
@ -55,8 +55,17 @@ rwm_op_cleanup( Operation *op, SlapReply *rs )
|
|||
op->o_req_dn = ros->ro_dn;
|
||||
op->o_req_ndn = ros->ro_ndn;
|
||||
|
||||
if ( !BER_BVISEMPTY( &ros->r_dn )) ch_free( ros->r_dn.bv_val );
|
||||
if ( !BER_BVISEMPTY( &ros->r_ndn )) ch_free( ros->r_ndn.bv_val );
|
||||
if ( !BER_BVISNULL( &ros->r_dn )
|
||||
&& ros->r_dn.bv_val != ros->r_ndn.bv_val )
|
||||
{
|
||||
ch_free( ros->r_dn.bv_val );
|
||||
BER_BVZERO( &ros->r_dn );
|
||||
}
|
||||
|
||||
if ( !BER_BVISNULL( &ros->r_ndn ) ) {
|
||||
ch_free( ros->r_ndn.bv_val );
|
||||
BER_BVZERO( &ros->r_ndn );
|
||||
}
|
||||
|
||||
switch( ros->r_tag ) {
|
||||
case LDAP_REQ_COMPARE:
|
||||
|
|
|
|||
Loading…
Reference in a new issue