From: Rein Tollevik Date: Fri, 3 Apr 2009 17:55:47 +0000 (+0000) Subject: ITS#6045: Use copy of db when testing filter in matchops. X-Git-Tag: ACLCHECK_0~646 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab0d7543df22346a15193b8f63e629e1fb8a2080;p=openldap ITS#6045: Use copy of db when testing filter in matchops. --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index d4bbeaab4f..f2e6c3b54d 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1182,6 +1182,7 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit ) { Operation op2; Opheader oh; + BackendDB be; syncmatches *sm; int found = 0; @@ -1249,9 +1250,11 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit ) if ( fc.fscope ) { op2 = *ss->s_op; + be = *op2.o_bd; oh = *op->o_hdr; oh.oh_conn = ss->s_op->o_conn; oh.oh_connid = ss->s_op->o_connid; + op2.o_bd = &be; op2.o_hdr = &oh; op2.o_extra = op->o_extra; rc = test_filter( &op2, e, ss->s_op->ors_filter );