Fixed false positive in suspicous user agent

Optimized stddev calculation
This commit is contained in:
Luca Deri
2020-08-30 12:25:15 +02:00
parent 8bf95b6198
commit dd75060932
74 changed files with 284 additions and 272 deletions
-1
View File
@@ -269,7 +269,6 @@ static void ndpi_check_user_agent(struct ndpi_detection_module_struct *ndpi_stru
if((strlen(ua) < 4)
|| (!strncmp(ua, "test", 4))
|| (!strncmp(ua, "<?", 2))
|| strchr(ua, ';')
|| strchr(ua, '{')
|| strchr(ua, '}')
|| ndpi_check_dga_name(ndpi_struct, NULL, ua)