From: Rein Tollevik Date: Sat, 4 Apr 2009 17:58:58 +0000 (+0000) Subject: Fixed previous edit: Use op->o_bd, not a copy of ss->s_op->o_bd X-Git-Tag: ACLCHECK_0~645 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aef88182abcc3a6520966403743fb407ae282274;p=openldap Fixed previous edit: Use op->o_bd, not a copy of ss->s_op->o_bd --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index f2e6c3b54d..fa5f87ad4d 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1182,7 +1182,6 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit ) { Operation op2; Opheader oh; - BackendDB be; syncmatches *sm; int found = 0; @@ -1250,11 +1249,10 @@ 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_bd = op->o_bd; op2.o_hdr = &oh; op2.o_extra = op->o_extra; rc = test_filter( &op2, e, ss->s_op->ors_filter );