diff options
author | Luca Deri <deri@ntop.org> | 2021-08-11 12:11:58 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-08-11 12:11:58 +0200 |
commit | a2ea67152c63f28b75b639196681dc0ad7b1030e (patch) | |
tree | 3afe19ab32ad79e3a0e516874baf0eae09b63768 /src/lib/protocols/ftp_control.c | |
parent | 5c33fbf19b5bab76aca04432fc7fa6f956ff785f (diff) |
Added check to avoid clases on similar protocols (FTP adn SMTP) on setting hostname
Diffstat (limited to 'src/lib/protocols/ftp_control.c')
-rw-r--r-- | src/lib/protocols/ftp_control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/protocols/ftp_control.c b/src/lib/protocols/ftp_control.c index 7a644f6b8..7bf35e719 100644 --- a/src/lib/protocols/ftp_control.c +++ b/src/lib/protocols/ftp_control.c @@ -33,6 +33,8 @@ static void ndpi_int_ftp_control_add_connection(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { + + flow->host_server_name[0] = '\0'; /* Remove any data set by other dissectors (eg. SMTP) */ ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_FTP_CONTROL, NDPI_PROTOCOL_UNKNOWN); } |