From 06379f9cf9a6fbdf96db006452a50c91da4bf28d Mon Sep 17 00:00:00 2001 From: Rein Tollevik Date: Fri, 13 Jun 2008 15:55:01 +0000 Subject: [PATCH] ITS#5548 use syncrepl Connection when evaluating filter and acl. --- servers/slapd/overlays/syncprov.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.39.5