mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#6821 make sure objectclass is processed before other mods
This commit is contained in:
parent
4225acc07a
commit
14b7b19c0d
@ -377,6 +377,14 @@ int ndb_modify_internal(
|
||||
return rc;
|
||||
}
|
||||
|
||||
if ( got_oc ) {
|
||||
rc = ndb_entry_put_info( op->o_bd, NA, 1 );
|
||||
if ( rc ) {
|
||||
attrs_free( old );
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
/* apply modifications to DB */
|
||||
modai = (NdbAttrInfo **)op->o_tmpalloc( nmods * sizeof(NdbAttrInfo*), op->o_tmpmemctx );
|
||||
|
||||
@ -400,7 +408,8 @@ int ndb_modify_internal(
|
||||
}
|
||||
ldap_pvt_thread_rdwr_runlock( &ni->ni_ai_rwlock );
|
||||
|
||||
if ( got_oc || indexed ) {
|
||||
/* If got_oc, this was already done above */
|
||||
if ( indexed && !got_oc) {
|
||||
rc = ndb_entry_put_info( op->o_bd, NA, 1 );
|
||||
if ( rc ) {
|
||||
attrs_free( old );
|
||||
|
Loading…
Reference in New Issue
Block a user