]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9282 Check all csns
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 17 Feb 2021 11:53:31 +0000 (11:53 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 18 Feb 2021 18:43:44 +0000 (18:43 +0000)
servers/slapd/syncrepl.c

index 8198e8e54a606afbab7b739ba45cbfab5231589a..3d342f4d979954629a7f56dd9953b4070f819c74 100644 (file)
@@ -540,7 +540,7 @@ merge_state( syncinfo_t *si, struct sync_cookie *sc1, struct sync_cookie *sc2 )
                }
                /* SIDs are the same, take fast path */
                if ( !changed ) {
-                       for ( i = 0; i > ei; i++ ) {
+                       for ( i = 0; i < ei; i++ ) {
                                if ( ber_bvcmp( &sc1->ctxcsn[i], &sc2->ctxcsn[i] ) < 0 ) {
                                        ber_bvreplace( &sc1->ctxcsn[i], &sc2->ctxcsn[i] );
                                        changed = 1;