X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fstrlist.c;h=0c8fce3c2edc80fa06b78eda631d3e7373d0c6f5;hb=a3eac0731ffb3a31b57f9feed0256678f187f2a1;hp=a8316a4cefcbc46cf76c22b5034208d76af1d617;hpb=bc1f4bbff3c59eaaf70d3d77dfa635f52bebb068;p=apps%2Fpfixtools.git diff --git a/postlicyd/strlist.c b/postlicyd/strlist.c index a8316a4..0c8fce3 100644 --- a/postlicyd/strlist.c +++ b/postlicyd/strlist.c @@ -339,6 +339,9 @@ static filter_result_t strlist_filter(const filter_t *filter, const query_t *que if ((!part && trie_lookup(trie, rev ? reverse : normal)) \ || (part && trie_prefix(trie, rev ? reverse : normal))) { \ sum += weight; \ + if (sum >= config->hard_threshold) { \ + return HTK_HARD_MATCH; \ + } \ } \ } \ }