From 00598c71b288a125e26b9bb0fc59f55701d0fca5 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Wed, 26 Mar 2025 09:50:33 +0100 Subject: Use the proper helper to exclude protocols (#2781) --- src/lib/protocols/irc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/protocols/irc.c') diff --git a/src/lib/protocols/irc.c b/src/lib/protocols/irc.c index 9a0e0b903..5fa2bd2dd 100644 --- a/src/lib/protocols/irc.c +++ b/src/lib/protocols/irc.c @@ -99,8 +99,7 @@ static void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct NDPI_LOG_DBG(ndpi_struct, "search irc\n"); if((flow->detected_protocol_stack[0] != NDPI_PROTOCOL_IRC && (flow->packet_counter > 10)) || (flow->packet_counter >= 10)) { - NDPI_LOG_DBG(ndpi_struct, "exclude irc, packet_counter too high0\n"); - NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_IRC); + NDPI_EXCLUDE_PROTO(ndpi_struct, flow); return; } -- cgit v1.2.3