summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2005-12-16 17:40:03 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2005-12-16 17:40:03 +0000
commit7eec5b326ffcb492c769413f00cad7e0b229bac7 (patch)
tree770333bd453a4546c20a2d37961c276dc59502cd
parent41654ac0d6c4237cb7d770abc296ee39bdabf6d3 (diff)
downloadds-7eec5b326ffcb492c769413f00cad7e0b229bac7.tar.gz
ds-7eec5b326ffcb492c769413f00cad7e0b229bac7.tar.xz
ds-7eec5b326ffcb492c769413f00cad7e0b229bac7.zip
[175897] filter'd search not returning matches after index added
-rw-r--r--ldap/servers/slapd/back-ldbm/filterindex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/servers/slapd/back-ldbm/filterindex.c b/ldap/servers/slapd/back-ldbm/filterindex.c
index 203f732d..5693a5ea 100644
--- a/ldap/servers/slapd/back-ldbm/filterindex.c
+++ b/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]);