diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 3f8e620c15..f4a9c39531 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -2707,6 +2707,8 @@ attr_cmp( Operation *op, Attribute *old, Attribute *new, } if ( k == o ) { adds[a++] = j++; + } else { + j++; } } while ( i < o )