aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/http.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-08-30 12:25:15 +0200
committerLuca Deri <deri@ntop.org>2020-08-30 12:25:15 +0200
commitdd75060932d476320b72113ee9f6527aac36a357 (patch)
tree0d0b03de31bfde707baa3bff29e50d2fb44186a5 /src/lib/protocols/http.c
parent8bf95b6198f1c1c04b9f783540b275282720e258 (diff)
Fixed false positive in suspicous user agent
Optimized stddev calculation
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r--src/lib/protocols/http.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 941c9b431..4ae455ee1 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -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)