Added checks for giving up faster on IRC and SMTP

This commit is contained in:
Luca Deri
2021-02-09 21:27:09 +01:00
parent 1a557d0918
commit 512f73f381
2 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct,
return;
}
if(!flow->check_extra_packets)
if((!flow->check_extra_packets) || (flow->packet_counter > 12))
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}