From: Luke Howard Date: Fri, 24 Jan 2003 07:51:26 +0000 (+0000) Subject: Fix filter iteration bug X-Git-Tag: NO_SLAP_OP_BLOCKS~512 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a67c669583722b05dacd91a7b5400a9f73d18826;p=openldap Fix filter iteration bug --- 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;