]> git.sur5r.net Git - openldap/commitdiff
Fix filter iteration bug
authorLuke Howard <lukeh@openldap.org>
Fri, 24 Jan 2003 07:51:26 +0000 (07:51 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 24 Jan 2003 07:51:26 +0000 (07:51 +0000)
servers/slapd/slapi/slapi_utils.c

index accd201e6828fad45d6050bc99f9f3c5548ea9de..0922ae0138a9e7a9aada668f130f41d07d930cce 100644 (file)
@@ -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;