aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-04-15 18:13:17 +0200
committerLuca Deri <deri@ntop.org>2024-04-15 18:13:17 +0200
commit108b8331d5b345e110c9ef110a6aa95a2767a640 (patch)
tree15f90598e98aefeb05e5c0d851d01ce4bf6b51f8
parent95897c64362c1529c7f8e884920159fedeb160d5 (diff)
Invalid initialization
-rw-r--r--src/lib/ndpi_domains.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_domains.c b/src/lib/ndpi_domains.c
index a2f8ef985..699beaf1f 100644
--- a/src/lib/ndpi_domains.c
+++ b/src/lib/ndpi_domains.c
@@ -66,7 +66,7 @@ int ndpi_load_domain_suffixes(struct ndpi_detection_module_struct *ndpi_str,
line[len--] = '\0';
if(!ndpi_domain_classify_add(ndpi_str->public_domain_suffixes,
- num_domains /* dummy */, &line[offset])) {
+ 1 /* dummy */, &line[offset])) {
NDPI_LOG_ERR(ndpi_str, "Error while processing domain %s\n", &line[offset]);
} else
num_domains++;