mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#6730: Only update modifiersName once per entry
This commit is contained in:
parent
a36512660f
commit
3d48d5a360
@ -566,10 +566,12 @@ refint_repair(
|
||||
|
||||
for ( dp = rq->attrs; dp; dp = dp->next ) {
|
||||
Operation op2 = *op;
|
||||
SlapReply rs2 = { 0 };
|
||||
SlapReply rs2 = {REP_RESULT};
|
||||
refint_attrs *ra;
|
||||
Modifications *m;
|
||||
|
||||
if ( dp->attrs == NULL ) continue; /* TODO: Is this needed? */
|
||||
|
||||
op2.o_tag = LDAP_REQ_MODIFY;
|
||||
op2.orm_modlist = NULL;
|
||||
op2.o_req_dn = dp->dn;
|
||||
@ -582,10 +584,6 @@ refint_repair(
|
||||
continue;
|
||||
}
|
||||
|
||||
rs2.sr_type = REP_RESULT;
|
||||
for ( ra = dp->attrs; ra; ra = ra->next ) {
|
||||
size_t len;
|
||||
|
||||
/* Set our ModifiersName */
|
||||
if ( SLAP_LASTMOD( op->o_bd ) ) {
|
||||
m = op2.o_tmpalloc( sizeof(Modifications) +
|
||||
@ -605,6 +603,9 @@ refint_repair(
|
||||
m->sml_nvalues[0] = id->refint_ndn;
|
||||
}
|
||||
|
||||
for ( ra = dp->attrs; ra; ra = ra->next ) {
|
||||
size_t len;
|
||||
|
||||
/* Add values */
|
||||
if ( ra->dont_empty || !BER_BVISEMPTY( &rq->newdn ) ) {
|
||||
len = sizeof(Modifications);
|
||||
|
Loading…
Reference in New Issue
Block a user