aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/icecast.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2019-04-05 12:47:58 +0200
committerLuca <deri@ntop.org>2019-04-05 12:47:58 +0200
commit4e7fa82affc876245ab7f008271a49bde80bcf9f (patch)
tree8653fd3892e119f106b5649192ef38b1be9e088a /src/lib/protocols/icecast.c
parent5656a41f696e8073de28be5bdbd909fda108ee78 (diff)
Fixed false positive with FTP_DATA protocol
Added coherency in application protol guess by exploiting the host server name Various protocol optimizations
Diffstat (limited to 'src/lib/protocols/icecast.c')
-rw-r--r--src/lib/protocols/icecast.c2
1 files changed, 2 insertions, 0 deletions
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;