diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2005-12-22 20:59:28 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2005-12-22 20:59:28 +0000 |
commit | 75e81c6c9406af4cd81683e0ea97bb2042b9dd22 (patch) | |
tree | df0b6251af8e8e5bb5c9d525ee3af551c7f55b0a | |
parent | 9e232be097eae9e545883185a72addcb01c4d7d9 (diff) | |
download | ds-unlabeled-1.4.4.tar.gz ds-unlabeled-1.4.4.tar.xz ds-unlabeled-1.4.4.zip |
[175897] filter'd search not returning matches after index addedunlabeled-1.4.4
-rw-r--r-- | ldap/servers/slapd/back-ldbm/filterindex.c | 3 |
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]); |