Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10398
Modified Files:
Tag: Directory71RtmBranch
filterindex.c
Log Message:
[175897] filter'd search not returning matches after index added
Index: filterindex.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/filterindex.c,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -r1.4 -r1.4.2.1
--- filterindex.c 19 Apr 2005 22:07:38 -0000 1.4
+++ filterindex.c 19 Dec 2005 21:37:07 -0000 1.4.2.1
@@ -640,7 +640,8 @@
{
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]);
Show replies by thread