From 4e7fa82affc876245ab7f008271a49bde80bcf9f Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 5 Apr 2019 12:47:58 +0200 Subject: Fixed false positive with FTP_DATA protocol Added coherency in application protol guess by exploiting the host server name Various protocol optimizations --- src/lib/protocols/icecast.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/protocols/icecast.c') diff --git a/src/lib/protocols/icecast.c b/src/lib/protocols/icecast.c index 515d5b572..0bb87b88a 100644 --- a/src/lib/protocols/icecast.c +++ b/src/lib/protocols/icecast.c @@ -64,6 +64,8 @@ void ndpi_search_icecast_tcp(struct ndpi_detection_module_struct *ndpi_struct, s goto icecast_exclude; } + if(flow == NULL) return; + if((packet->packet_direction == flow->setup_packet_direction) && (flow->packet_counter < 10)) { return; -- cgit v1.2.3