]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 15 Aug 2005 05:36:56 +0000 (05:36 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 15 Aug 2005 05:36:56 +0000 (05:36 +0000)
servers/slapd/overlays/syncprov.c

index a78cfab33f8679ab86074082535d68156a542958..34273bcf41a2ed35613fcb5be2af2c632ade97cb 100644 (file)
@@ -597,6 +597,7 @@ again:
                maxcsn.bv_len = si->si_ctxcsn.bv_len;
                break;
        case FIND_CSN:
+               cf.f_av_value = srs->sr_state.ctxcsn;
                /* Look for exact match the first time */
                if ( findcsn_retry ) {
                        cf.f_choice = LDAP_FILTER_EQUALITY;
@@ -608,7 +609,6 @@ again:
                        fop.ors_filterstr.bv_len = sprintf( buf, "(entryCSN<=%s)",
                                cf.f_av_value.bv_val );
                }
-               cf.f_av_value = srs->sr_state.ctxcsn;
                fop.ors_attrsonly = 1;
                fop.ors_attrs = slap_anlist_no_attrs;
                fop.ors_slimit = 1;