]> git.sur5r.net Git - openldap/commitdiff
ITS#8413 fix prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 28 Apr 2016 09:54:47 +0000 (10:54 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Apr 2016 09:54:47 +0000 (10:54 +0100)
Filter needs AttributeAssertions

servers/slapd/syncrepl.c

index b692361a247df80869b25819ac213154da468677..ae54bcb273a575b3729cd1db96bbf55591acf915 100644 (file)
@@ -2161,6 +2161,7 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
                resolve_ctxt rx;
                slap_callback cb = { NULL, syncrepl_resolve_cb, NULL, NULL };
         Filter lf[3] = {0};
+        AttributeAssertion aa[2] = {0};
 
                rx.rx_si = si;
                rx.rx_mods = newlist;
@@ -2192,10 +2193,12 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
         lf[0].f_choice = LDAP_FILTER_AND;
         lf[0].f_and = lf+1;
         lf[1].f_choice = LDAP_FILTER_GE;
+        lf[1].f_ava = aa;
         lf[1].f_av_desc = slap_schema.si_ad_entryCSN;
         lf[1].f_av_value = bv;
         lf[1].f_next = lf+2;
         lf[2].f_choice = LDAP_FILTER_EQUALITY;
+        lf[2].f_ava = aa+1;
         lf[2].f_av_desc = ad_reqDN;
         lf[2].f_av_value = op->o_req_ndn;
         lf[2].f_next = si->si_logfilter;