From: Howard Chu Date: Fri, 10 Aug 2007 23:10:59 +0000 (+0000) Subject: ITS#5077 fix attr_cmp loop termination X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd47824bbb9ac8cc986e521df0c28c1a008f2e8b;p=openldap ITS#5077 fix attr_cmp loop termination --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 6e3d661473..426d40cbdf 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -2699,7 +2699,9 @@ attr_cmp( Operation *op, Attribute *old, Attribute *new, dels[d++] = i++; continue; } - for ( k = i + 1; k < o; k++ ) { + /* old value still exists, move to next */ + i++; + for ( k = i; k < o; k++ ) { if ( bvmatch( &old->a_vals[k], &new->a_vals[j] ) ) { break; }