]> git.sur5r.net Git - openldap/commitdiff
ITS#6368 add another call to check_syncprov to make sure cookie is fresh
authorHoward Chu <hyc@openldap.org>
Wed, 18 Nov 2009 22:06:02 +0000 (22:06 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 18 Nov 2009 22:06:02 +0000 (22:06 +0000)
servers/slapd/syncrepl.c

index ffefe52e813588bc19f88f0fcbe37b44995d21f0..7a4e6d41181d164ad29428aab4713889f17dd8c2 100644 (file)
@@ -857,6 +857,7 @@ do_syncrep2(
                                        slap_parse_sync_cookie( &syncCookie, NULL );
                                        if ( syncCookie.ctxcsn ) {
                                                int i, sid = slap_parse_csn_sid( syncCookie.ctxcsn );
+                                               check_syncprov( op, si );
                                                for ( i =0; i<si->si_cookieState->cs_num; i++ ) {
                                                        if ( si->si_cookieState->cs_sids[i] == sid && 
                                                                ber_bvcmp( syncCookie.ctxcsn, &si->si_cookieState->cs_vals[i] ) <= 0 ) {