From a67c669583722b05dacd91a7b5400a9f73d18826 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 24 Jan 2003 07:51:26 +0000 Subject: [PATCH] Fix filter iteration bug --- servers/slapd/slapi/slapi_utils.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index accd201e68..0922ae0138 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -1162,10 +1162,9 @@ slapi_filter_list_next( ftype = f->f_choice; if ( ftype == LDAP_FILTER_AND || ftype == LDAP_FILTER_OR - || ftype == LDAP_FILTER_NOT ) { - if ( f->f_and == fprev ) { - return f->f_and->f_next; - } + || ftype == LDAP_FILTER_NOT ) + { + return fprev->f_next; } return NULL; -- 2.39.5