From c76ee598c0c3d211724aeeb23d9afd89ea8c96f4 Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 25 Mar 2002 23:56:34 +0000 Subject: [PATCH] oops, the indexing code did much too much work --- Makefile | 2 +- tinyldap.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index dba5527..ae861e0 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ tinyldap_debug: tinyldap.c clean: rm -f t t[1-9] *.[ao] bindrequest tinyldap ldapclient data \ parse tinyldap_standalone tinyldap_debug ldapclient_str addindex \ -dumpidx +dumpidx *.da *.bbg *.bb *.gcov gmon.out tar: clean cd ..; tar cvvf ldap.tar.bz2 ldap --use=bzip2 --exclude CVS --exclude exp.ldif --exclude polyp* --exclude rfc* diff --git a/tinyldap.c b/tinyldap.c index 8ea92b8..c075a74 100644 --- a/tinyldap.c +++ b/tinyldap.c @@ -176,15 +176,17 @@ static void tagmatches(uint32* index,unsigned int elements,struct string* s,unsi * Look before and after mid, too */ for (oldk=k; k>0; ) { k-=4; - if ((l=matchstring(s,map+k))==0) + if ((l=matchstring(s,map+k))==0) { if ((rec=findrec(k))) setbit(bitfield,rec); + } else break; } for (k=oldk; k