diff options
Diffstat (limited to 'src/squark-filter.c')
-rw-r--r-- | src/squark-filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/squark-filter.c b/src/squark-filter.c index c8e4f18..50b96de 100644 --- a/src/squark-filter.c +++ b/src/squark-filter.c @@ -294,8 +294,8 @@ static int url_classify(struct url_info *url, struct sqdb *db) previ = i; i = cmph_search_packed(cmph, key.ptr, key.len); - tld = sqdb_get_string_literal(db, indx[i].component); - if (blob_cmp(got, sqdb_get_string_literal(db, indx[i].component)) != 0) { + if (indx[i].parent != previ || + blob_cmp(got, sqdb_get_string_literal(db, indx[i].component)) != 0) { /* the subdomain did no longer match, use * parents classification */ i = previ; |