diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-12-22 21:41:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 21:41:32 +0100 |
commit | 5fafe8374a5cc0cc890053c5bf0cb81b3bda80c9 (patch) | |
tree | 41a82c662550d5aaab0c31e45875106c61e3949e /src/lib/protocols/ftp_control.c | |
parent | e9d5e72fb58d5989673487c4b4ef4584d8694467 (diff) |
postgres: improve detection (#1831)
Remove some dead code (found via coverage report)
Diffstat (limited to 'src/lib/protocols/ftp_control.c')
-rw-r--r-- | src/lib/protocols/ftp_control.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/protocols/ftp_control.c b/src/lib/protocols/ftp_control.c index 2566e55da..edc41e5f6 100644 --- a/src/lib/protocols/ftp_control.c +++ b/src/lib/protocols/ftp_control.c @@ -563,8 +563,6 @@ static int ndpi_ftp_control_check_response(struct ndpi_flow_struct *flow, printf("%s() [%.*s]\n", __FUNCTION__, (int)payload_len, payload); #endif - if(payload_len == 0) return(1); - switch(payload[0]) { case '1': case '2': @@ -573,14 +571,12 @@ static int ndpi_ftp_control_check_response(struct ndpi_flow_struct *flow, if(flow->l4.tcp.ftp_imap_pop_smtp.auth_found == 1) flow->l4.tcp.ftp_imap_pop_smtp.auth_tls = 1; return(1); - break; case '4': case '5': flow->l4.tcp.ftp_imap_pop_smtp.auth_failed = 1; flow->l4.tcp.ftp_imap_pop_smtp.auth_done = 1; return(1); - break; } return 0; |