diff options
author | Luca Deri <deri@ntop.org> | 2024-04-09 00:01:47 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2024-04-09 00:01:47 +0200 |
commit | 00a360f30a89fd479465db64d7e92e761645c101 (patch) | |
tree | 7ed947aaa86ee2dcc16c6d3e5b9b405e94f0f93e /src | |
parent | 98bf0e243e77de85058f66da0a60c6485a859135 (diff) |
Disabled "known proto on non standard port" for FTP_DATA
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index c2583accc..b0a9107c0 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -8560,8 +8560,10 @@ static ndpi_protocol ndpi_internal_detection_process_packet(struct ndpi_detectio ntohs(flow->c_port), ntohs(flow->s_port)); if((r == NULL) - || ((r->proto->protoId != ret.app_protocol) && (r->proto->protoId != ret.master_protocol))) - ndpi_set_risk(flow, NDPI_KNOWN_PROTOCOL_ON_NON_STANDARD_PORT,NULL); + || ((r->proto->protoId != ret.app_protocol) && (r->proto->protoId != ret.master_protocol))) { + if(ret.app_protocol != NDPI_PROTOCOL_FTP_DATA) + ndpi_set_risk(flow, NDPI_KNOWN_PROTOCOL_ON_NON_STANDARD_PORT,NULL); + } } } |