mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 14:23:34 -05:00
ITS#5486, fix rev 1.219. Must never use s_op directly, must always use
a copy.
This commit is contained in:
parent
25f8500008
commit
198b14be90
1 changed files with 5 additions and 1 deletions
|
|
@ -1176,6 +1176,7 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
|
|||
for (ss = si->si_ops, sprev = (syncops *)&si->si_ops; ss;
|
||||
sprev = ss, ss=snext)
|
||||
{
|
||||
Operation op2;
|
||||
syncmatches *sm;
|
||||
int found = 0;
|
||||
|
||||
|
|
@ -1223,8 +1224,11 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
|
|||
}
|
||||
}
|
||||
|
||||
if ( fc.fscope )
|
||||
op2 = *ss->s_op;
|
||||
|
||||
/* check if current o_req_dn is in scope and matches filter */
|
||||
if ( fc.fscope && test_filter( ss->s_op, e, ss->s_op->ors_filter ) ==
|
||||
if ( fc.fscope && test_filter( &op2, e, ss->s_op->ors_filter ) ==
|
||||
LDAP_COMPARE_TRUE ) {
|
||||
if ( saveit ) {
|
||||
sm = op->o_tmpalloc( sizeof(syncmatches), op->o_tmpmemctx );
|
||||
|
|
|
|||
Loading…
Reference in a new issue