aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/ftp_data.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-12-22 21:41:32 +0100
committerGitHub <noreply@github.com>2022-12-22 21:41:32 +0100
commit5fafe8374a5cc0cc890053c5bf0cb81b3bda80c9 (patch)
tree41a82c662550d5aaab0c31e45875106c61e3949e /src/lib/protocols/ftp_data.c
parente9d5e72fb58d5989673487c4b4ef4584d8694467 (diff)
postgres: improve detection (#1831)
Remove some dead code (found via coverage report)
Diffstat (limited to 'src/lib/protocols/ftp_data.c')
-rw-r--r--src/lib/protocols/ftp_data.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/protocols/ftp_data.c b/src/lib/protocols/ftp_data.c
index 11c04744b..d532a6c66 100644
--- a/src/lib/protocols/ftp_data.c
+++ b/src/lib/protocols/ftp_data.c
@@ -250,12 +250,6 @@ static void ndpi_check_ftp_data(struct ndpi_detection_module_struct *ndpi_struct
void ndpi_search_ftp_data(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 FTP_DATA\n");
ndpi_check_ftp_data(ndpi_struct, flow);
}