Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19777
Modified Files: 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.5 diff -u -r1.4 -r1.5 --- filterindex.c 19 Apr 2005 22:07:38 -0000 1.4 +++ filterindex.c 16 Dec 2005 17:40:03 -0000 1.5 @@ -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]);
389-commits@lists.fedoraproject.org