Browse Source

[175897] filter'd search not returning matches after index added

Noriko Hosoi 20 years ago
parent
commit
7eec5b326f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ldap/servers/slapd/back-ldbm/filterindex.c

+ 2 - 1
ldap/servers/slapd/back-ldbm/filterindex.c

@@ -640,7 +640,8 @@ list_candidates(
     {
         is_bounded_range = 0;
     }
-    if (NULL == fpairs[0] || NULL == fpairs[1])
+    if (NULL == fpairs[0] || NULL == fpairs[1] ||
+        0 != strcmp(tpairs[0], tpairs[1]) /* avoid "&(cn<=A)(sn>=B)" type */ )
     {
         fpairs[0] = fpairs[1] = NULL;
         slapi_ch_free_string(&tpairs[0]);