]> git.sur5r.net Git - openldap/commitdiff
ITS#5548 use syncrepl Connection when evaluating filter and acl.
authorRein Tollevik <rein@openldap.org>
Fri, 13 Jun 2008 15:55:01 +0000 (15:55 +0000)
committerRein Tollevik <rein@openldap.org>
Fri, 13 Jun 2008 15:55:01 +0000 (15:55 +0000)
servers/slapd/overlays/syncprov.c

index d525cb6c46a5154401e6d32920ba32d9c63b3643..e6e2161e447abcc7d4c625ce29e7f44a45f56aba 100644 (file)
@@ -1181,6 +1181,7 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
                sprev = ss, ss=snext)
        {
                Operation op2;
+               Opheader oh;
                syncmatches *sm;
                int found = 0;
 
@@ -1230,7 +1231,10 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
 
                if ( fc.fscope ) {
                        op2 = *ss->s_op;
-                       op2.o_hdr = op->o_hdr;
+                       oh = *op->o_hdr;
+                       oh.oh_conn = ss->s_op->o_conn;
+                       oh.oh_connid = ss->s_op->o_connid;
+                       op2.o_hdr = &oh;
                        op2.o_extra = op->o_extra;
                }