From 024d4cbee2e21ad6e2ef98f726db28a074032522 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 28 Jul 2015 12:10:54 +0100 Subject: [PATCH] Fix filter init compound filters f_next is not ignored --- contrib/slapd-modules/adremap/adremap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/slapd-modules/adremap/adremap.c b/contrib/slapd-modules/adremap/adremap.c index 482308b6a8..02cc27075b 100644 --- a/contrib/slapd-modules/adremap/adremap.c +++ b/contrib/slapd-modules/adremap/adremap.c @@ -357,6 +357,7 @@ static void adremap_filter( */ fr[0].f_choice = LDAP_FILTER_AND; fr[0].f_and = &fr[1]; + fr[0].f_next = NULL; fr[1].f_choice = LDAP_FILTER_EQUALITY; fr[1].f_ava = &aa[0]; @@ -404,6 +405,7 @@ static void adremap_filter( f = op->o_tmpalloc(sizeof(Filter), op->o_tmpmemctx); f->f_choice = LDAP_FILTER_AND; fnew = f; + f->f_next = NULL; f->f_and = op->o_tmpalloc(sizeof(Filter), op->o_tmpmemctx); f = f->f_and; -- 2.39.5