mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9352 syncrepl: fix syncrepl_op_modify on entry with no entryCSN
This commit is contained in:
parent
984ecd113a
commit
331e587754
@ -2669,10 +2669,15 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
|
||||
Attribute *a;
|
||||
const char *text;
|
||||
a = attr_find( e->e_attrs, slap_schema.si_ad_entryCSN );
|
||||
value_match( &match, slap_schema.si_ad_entryCSN,
|
||||
slap_schema.si_ad_entryCSN->ad_type->sat_ordering,
|
||||
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
|
||||
&mod->sml_nvalues[0], &a->a_nvals[0], &text );
|
||||
if ( a ) {
|
||||
value_match( &match, slap_schema.si_ad_entryCSN,
|
||||
slap_schema.si_ad_entryCSN->ad_type->sat_ordering,
|
||||
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
|
||||
&mod->sml_nvalues[0], &a->a_nvals[0], &text );
|
||||
} else {
|
||||
/* no entryCSN? shouldn't happen. assume mod is newer. */
|
||||
match = 1;
|
||||
}
|
||||
overlay_entry_release_ov( op, e, 0, on );
|
||||
}
|
||||
/* equal? Should never happen */
|
||||
|
Loading…
Reference in New Issue
Block a user