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 /src/lib/protocols/tls.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 'src/lib/protocols/tls.c')
-rw-r--r-- | src/lib/protocols/tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 60d54e9ba..8d2f4dd7f 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -2813,7 +2813,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct, ndpi_set_risk(ndpi_struct, flow, NDPI_NUMERIC_IP_HOST, sni); } - if(ndpi_check_dga_name(ndpi_struct, flow, sni, 1, 0)) { + if(ndpi_check_dga_name(ndpi_struct, flow, sni, 1, 0, 0)) { #ifdef DEBUG_TLS printf("[TLS] SNI: (DGA) [%s]\n", sni); #endif |