diff options
author | Luca Deri <deri@ntop.org> | 2024-04-15 14:25:26 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2024-04-15 14:25:26 +0200 |
commit | 95897c64362c1529c7f8e884920159fedeb160d5 (patch) | |
tree | 5b68f959420748dedf0b973d233286bba8787722 /src | |
parent | d97afd6efd0a6946dd546dacdd4cb3e753d74298 (diff) |
Fixed minor glitches
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_domains.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ndpi_domains.c b/src/lib/ndpi_domains.c index 7970f3a36..a2f8ef985 100644 --- a/src/lib/ndpi_domains.c +++ b/src/lib/ndpi_domains.c @@ -66,12 +66,14 @@ 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, - 1 /* dummy */, &line[offset])) { + num_domains /* dummy */, &line[offset])) { NDPI_LOG_ERR(ndpi_str, "Error while processing domain %s\n", &line[offset]); } else num_domains++; } + fclose(fd); + if(!ndpi_domain_classify_finalize(ndpi_str->public_domain_suffixes)) { NDPI_LOG_ERR(ndpi_str, "Error while finalizing domain processing\n"); } |