Commit 0f21ddeb authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo in filter_match.

parent 2ee7786e
......@@ -371,7 +371,7 @@ filter_match(struct filter *f, const unsigned char *id,
return 0;
}
if(f->prefix) {
if(!prefix || plen <= f->plen || !in_prefix(prefix, f->prefix, f->plen))
if(!prefix || plen < f->plen || !in_prefix(prefix, f->prefix, f->plen))
return 0;
}
if(f->plen_type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment