Fixes matches with domain name strings that start with a dot

This commit is contained in:
Luca Deri
2023-09-11 22:50:03 +02:00
parent 8e6500a0da
commit 1bf7e5face
4 changed files with 27 additions and 24 deletions
+1 -1
View File
@@ -5453,7 +5453,7 @@ void domainSearchUnitTest() {
u_int8_t class_id;
assert(sc);
ndpi_domain_classify_add(sc, NDPI_PROTOCOL_NTOP, ".ntop.org");
ndpi_domain_classify_add(sc, NDPI_PROTOCOL_NTOP, domain);
assert(ndpi_domain_classify_contains(sc, &class_id, domain));