First step in simplify ndpi_process_extra_packet() (#1680)

Move the prottocol specific logic into the proper dissector code, where
it belongs.

Next step: remove that list of protocols. Long goal: remove this
function altogether...
This commit is contained in:
Ivan Nardi
2022-07-29 12:07:14 +02:00
committed by GitHub
parent 172e698bb8
commit 95e16872fa
5 changed files with 16 additions and 45 deletions
+3 -1
View File
@@ -440,7 +440,9 @@ int ndpi_extra_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_st
}
} else {
ndpi_search_mail_smtp_tcp(ndpi_struct, flow);
rc = (flow->l4.tcp.ftp_imap_pop_smtp.password[0] == '\0') ? 1 : 0;
rc = ((flow->l4.tcp.ftp_imap_pop_smtp.password[0] == '\0') &&
(flow->l4.tcp.ftp_imap_pop_smtp.auth_tls == 1 ||
flow->l4.tcp.ftp_imap_pop_smtp.auth_done == 0)) ? 1 : 0;
}
#ifdef SMTP_DEBUG