]> 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 17:31:32 +0000 (17:31 +0000)
servers/slapd/syncrepl.c

index 129a14d24d16ca620c7e15326c6041b2020dde51..109faad92188f990fea8d0c13c4e7ff1d0ababbb 100644 (file)
@@ -718,7 +718,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;