diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-02-11 15:48:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 15:48:53 +0100 |
commit | 1dccaf37b075ebfb726d407b9c4d95fcf2983135 (patch) | |
tree | 866227cce31642e6aaa8ac2073f14605dd12cd74 /example/ndpiReader.c | |
parent | 73d1856525d99a22328d50dc15a24940a3f86922 (diff) |
DNS: fix check for DGA domain (#2716)
If we have a (potential) valid sub-classification, we shoudn't check for
DGA, even if the subclassification itself is disabled!
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 3845c0900..c8a2148ef 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -5187,12 +5187,12 @@ static void dgaUnitTest() { for(i=0; non_dga[i] != NULL; i++) { if(debug) printf("Checking non DGA %s\n", non_dga[i]); - assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i], 1, 1) == 0); + assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i], 1, 1, 0) == 0); } for(i=0; dga[i] != NULL; i++) { if(debug) printf("Checking DGA %s\n", non_dga[i]); - assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i], 1, 1) == 1); + assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i], 1, 1, 0) == 1); } ndpi_exit_detection_module(ndpi_str); |