summaryrefslogtreecommitdiffstats
path: root/src/squark-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/squark-filter.c')
-rw-r--r--src/squark-filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/squark-filter.c b/src/squark-filter.c
index 09693c9..407c1b5 100644
--- a/src/squark-filter.c
+++ b/src/squark-filter.c
@@ -248,7 +248,7 @@ static int url_classify(struct url_info *url, struct sqdb *db)
indx[p].parent != SQDB_PARENT_ROOT ||
blob_cmp(tld, sqdb_get_string_literal(db, indx[p].component)) != 0) {
/* top level domain did not match */
- i = -1;
+ i = SQDB_PARENT_ROOT;
goto parent_dns_match;
}
tld = BLOB_NULL;