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