summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2005-12-19 21:37:07 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2005-12-19 21:37:07 +0000
commit899e47c1013b92bd88db7432b6e221e66568e070 (patch)
tree25a02caee77862c94ed471af009d9c653c831d2c
parent6021966d390b620e4f838bad21f6410c21800cf8 (diff)
downloadds-899e47c1013b92bd88db7432b6e221e66568e070.tar.gz
ds-899e47c1013b92bd88db7432b6e221e66568e070.tar.xz
ds-899e47c1013b92bd88db7432b6e221e66568e070.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]);