aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/afp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/afp.c')
-rw-r--r--src/lib/protocols/afp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/protocols/afp.c b/src/lib/protocols/afp.c
index b55c4d4c7..685c8a103 100644
--- a/src/lib/protocols/afp.c
+++ b/src/lib/protocols/afp.c
@@ -56,6 +56,8 @@ static void ndpi_search_afp(struct ndpi_detection_module_struct *ndpi_struct, st
the initial connection, we need to discard these packets
as they are not an indication that this flow is not AFP
*/
+ if(flow->packet_counter > 5)
+ NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
return;
}