aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-06-08 14:01:10 +0200
committerGitHub <noreply@github.com>2025-06-08 14:01:10 +0200
commit5e895f91ea94ee0465493e8d4a4837a5fc6deedf (patch)
tree8dc77ed8056b00d00f8066c592248d089126fd84 /src
parentcc99039e1ff8dbf2e12b71ee96337e2ba819f23d (diff)
Sync unit tests results and fix `NDPI_HTTP_SUSPICIOUS_HEADER` (#2874)
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 4c33aec1a..26375fc64 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -978,7 +978,7 @@ static void ndpi_check_http_server(struct ndpi_detection_module_struct *ndpi_str
if(!ndpi_isprint(server[i])) {
char msg[64];
- snprintf(msg, sizeof(msg), "Suspicious Agent [%s]", server);
+ snprintf(msg, sizeof(msg), "Suspicious Agent [%.*s]", server_len, server);
ndpi_set_risk(ndpi_struct, flow, NDPI_HTTP_SUSPICIOUS_HEADER, msg);
break;