diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-01-06 16:53:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 16:53:29 +0100 |
commit | bf830b4236132b1100fb9c4863a737fb53eb669f (patch) | |
tree | 553dcba7218a50c247baa182d8c294fbc297e198 /src/lib/protocols/slp.c | |
parent | c3d19be26f8a437fbfc3fbae14d13c260cbe77d7 (diff) |
Add the ability to enable/disable every specific flow risks (#2653)
Diffstat (limited to 'src/lib/protocols/slp.c')
-rw-r--r-- | src/lib/protocols/slp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/slp.c b/src/lib/protocols/slp.c index e7fd6b105..81c1cabd9 100644 --- a/src/lib/protocols/slp.c +++ b/src/lib/protocols/slp.c @@ -285,7 +285,7 @@ static void ndpi_dissect_slp_v2(struct ndpi_detection_module_struct *ndpi_struct } } else if (url_entry_count_offset > 0 && packet->payload_packet_len > sizeof(*hdr) + url_entry_count_offset + 2) { if (slp_dissect_url_entries(ndpi_struct, flow, sizeof(*hdr) + url_entry_count_offset) != 0) { - ndpi_set_risk(flow, NDPI_MALFORMED_PACKET, "Invalid URL entries"); + ndpi_set_risk(ndpi_struct, flow, NDPI_MALFORMED_PACKET, "Invalid URL entries"); } } else if (packet->payload_packet_len > sizeof(*hdr) + url_offset + 2) { url_length_or_count = ntohs(*(uint16_t *)&packet->payload[sizeof(*hdr) + url_offset]); // FID_SrvReg or FID_SrvDeReg |