From 5fafe8374a5cc0cc890053c5bf0cb81b3bda80c9 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Thu, 22 Dec 2022 21:41:32 +0100 Subject: postgres: improve detection (#1831) Remove some dead code (found via coverage report) --- src/lib/protocols/ajp.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/lib/protocols/ajp.c') diff --git a/src/lib/protocols/ajp.c b/src/lib/protocols/ajp.c index 5a8dd00dd..75a99345a 100644 --- a/src/lib/protocols/ajp.c +++ b/src/lib/protocols/ajp.c @@ -110,12 +110,6 @@ static void ndpi_check_ajp(struct ndpi_detection_module_struct *ndpi_struct, void ndpi_search_ajp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { - // Break after 20 packets. - if(flow->packet_counter > 20) { - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); - return; - } - NDPI_LOG_DBG(ndpi_struct, "search AJP\n"); ndpi_check_ajp(ndpi_struct, flow); -- cgit v1.2.3