aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2022-04-16 09:56:08 +0200
committerLuca Deri <deri@ntop.org>2022-04-16 09:56:08 +0200
commit8b2c9860be8b0663bfe9fc3b6defc041bb90e5b2 (patch)
tree6e4d66dd8090ad5ebab48e0abadb08eede1a1d77 /src/lib
parent9c8a3f270a52d783bc8b7ca53a99f6d95c468d2a (diff)
DGA improvements
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index fec0e4c63..b0b98d4a4 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -8318,7 +8318,7 @@ int ndpi_check_dga_name(struct ndpi_detection_module_struct *ndpi_str,
if(num_bigram_checks
/* We already checked num_dots > 0 */
- && ((num_found == 0) || ((num_digits > 5) && (num_words <= 3))
+ && ((num_found == 0) || ((num_digits > 5) && (num_words <= 3) && (num_impossible > 0))
|| enough(num_found, num_impossible)
|| ((num_trigram_checked > 2)
&& ((num_trigram_found < (num_trigram_checked/2))