mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
Fix order of statements in SLAPI internal modrdn implementation
This commit is contained in:
parent
f12103f36b
commit
d6d202693d
1 changed files with 9 additions and 9 deletions
|
|
@ -792,15 +792,6 @@ slapi_modrdn_internal_pb( Slapi_PBlock *pb )
|
|||
manageDsaIt = isCritical ? SLAP_CONTROL_CRITICAL : SLAP_CONTROL_NONCRITICAL;
|
||||
}
|
||||
|
||||
op->o_bd = select_backend( &op->o_req_ndn, manageDsaIt, 1 );
|
||||
if ( op->o_bd == NULL ) {
|
||||
rs.sr_err = LDAP_PARTIAL_RESULTS;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
op->o_dn = pConn->c_dn = op->o_bd->be_rootdn;
|
||||
op->o_ndn = pConn->c_ndn = op->o_bd->be_rootndn;
|
||||
|
||||
dn.bv_val = (char *)olddn;
|
||||
dn.bv_len = strlen( olddn );
|
||||
|
||||
|
|
@ -814,6 +805,15 @@ slapi_modrdn_internal_pb( Slapi_PBlock *pb )
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
op->o_bd = select_backend( &op->o_req_ndn, manageDsaIt, 1 );
|
||||
if ( op->o_bd == NULL ) {
|
||||
rs.sr_err = LDAP_PARTIAL_RESULTS;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
op->o_dn = pConn->c_dn = op->o_bd->be_rootdn;
|
||||
op->o_ndn = pConn->c_ndn = op->o_bd->be_rootndn;
|
||||
|
||||
newrdn.bv_val = (char *)lnewrdn;
|
||||
newrdn.bv_len = strlen( lnewrdn );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue