mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
some overlay (rwm?) might set those values
This commit is contained in:
parent
a9c4b54f1b
commit
16043971ef
1 changed files with 12 additions and 0 deletions
|
|
@ -175,6 +175,18 @@ do_extended(
|
|||
op->o_bd = frontendDB;
|
||||
rs->sr_err = frontendDB->be_extended( op, rs );
|
||||
|
||||
/* clean up in case some overlay set them? */
|
||||
if ( !BER_BVISNULL( &op->o_req_ndn ) ) {
|
||||
if ( !BER_BVISNULL( &op->o_req_dn )
|
||||
&& op->o_req_ndn.bv_val != op->o_req_dn.bv_val )
|
||||
{
|
||||
op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx );
|
||||
BER_BVZERO( &op->o_req_dn );
|
||||
BER_BVZERO( &op->o_req_ndn );
|
||||
}
|
||||
|
||||
done:
|
||||
return rs->sr_err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue