From: Rein Tollevik Date: Fri, 13 Jun 2008 15:55:01 +0000 (+0000) Subject: ITS#5548 use syncrepl Connection when evaluating filter and acl. X-Git-Tag: LOCKER_IDS~111 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06379f9cf9a6fbdf96db006452a50c91da4bf28d;p=openldap ITS#5548 use syncrepl Connection when evaluating filter and acl. --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index d525cb6c46..e6e2161e44 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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; }