aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/munin.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-01-06 16:53:29 +0100
committerGitHub <noreply@github.com>2025-01-06 16:53:29 +0100
commitbf830b4236132b1100fb9c4863a737fb53eb669f (patch)
tree553dcba7218a50c247baa182d8c294fbc297e198 /src/lib/protocols/munin.c
parentc3d19be26f8a437fbfc3fbae14d13c260cbe77d7 (diff)
Add the ability to enable/disable every specific flow risks (#2653)
Diffstat (limited to 'src/lib/protocols/munin.c')
-rw-r--r--src/lib/protocols/munin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/munin.c b/src/lib/protocols/munin.c
index 6ca9ca9c3..06e50d3a6 100644
--- a/src/lib/protocols/munin.c
+++ b/src/lib/protocols/munin.c
@@ -64,7 +64,7 @@ static void ndpi_search_munin(struct ndpi_detection_module_struct *ndpi_struct,
if (packet->payload[packet->payload_packet_len - 1] != '\n')
{
- ndpi_set_risk(flow, NDPI_MALFORMED_PACKET, "Missing Munin Hostname");
+ ndpi_set_risk(ndpi_struct, flow, NDPI_MALFORMED_PACKET, "Missing Munin Hostname");
return;
}
@@ -73,7 +73,7 @@ static void ndpi_search_munin(struct ndpi_detection_module_struct *ndpi_struct,
{
ndpi_hostname_sni_set(flow, packet->payload + NDPI_STATICSTRING_LEN(munin_prefix), host_len, NDPI_HOSTNAME_NORM_ALL);
} else {
- ndpi_set_risk(flow, NDPI_MALFORMED_PACKET, "Missing Munin Hostname");
+ ndpi_set_risk(ndpi_struct, flow, NDPI_MALFORMED_PACKET, "Missing Munin Hostname");
}
}