mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-19 05:13:35 -05:00
ITS#9779 slapo-dynlist: fix static group filter with multiple members
This commit is contained in:
parent
2443e986d1
commit
e73cdc55e0
1 changed files with 3 additions and 10 deletions
|
|
@ -1208,20 +1208,13 @@ dynlist_filter_stgroup( Operation *op, Filter *n, Attribute *a )
|
|||
Filter *dnf, *orf = NULL;
|
||||
int i;
|
||||
|
||||
if ( a->a_numvals == 1 && n->f_choice == SLAPD_FILTER_COMPUTED ) {
|
||||
if ( a->a_numvals == 1 ) {
|
||||
dnf = n;
|
||||
dnf->f_next = NULL;
|
||||
} else {
|
||||
orf = n;
|
||||
if ( n->f_choice != LDAP_FILTER_OR ) {
|
||||
dnf = op->o_tmpalloc( sizeof(Filter), op->o_tmpmemctx );
|
||||
*dnf = *n;
|
||||
orf->f_choice = LDAP_FILTER_OR;
|
||||
orf->f_next = NULL;
|
||||
orf->f_list = dnf;
|
||||
}
|
||||
orf->f_choice = LDAP_FILTER_OR;
|
||||
dnf = op->o_tmpalloc( sizeof(Filter), op->o_tmpmemctx );
|
||||
dnf->f_next = orf->f_list;
|
||||
dnf->f_next = NULL;
|
||||
orf->f_list = dnf;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue