IMAP, POP3, SMTP: improve dissection (#1368)

Avoid NATS false positives
This commit is contained in:
Ivan Nardi
2021-11-11 11:55:56 +01:00
committed by GitHub
parent 9abf528c8e
commit 0f168d9150
14 changed files with 158 additions and 50 deletions
+2 -1
View File
@@ -7247,7 +7247,8 @@ u_int8_t ndpi_extra_dissection_possible(struct ndpi_detection_module_struct *ndp
case NDPI_PROTOCOL_MAIL_IMAP:
case NDPI_PROTOCOL_MAIL_SMTP:
if(flow->protos.ftp_imap_pop_smtp.password[0] == '\0' &&
flow->protos.ftp_imap_pop_smtp.auth_tls == 0)
flow->protos.ftp_imap_pop_smtp.auth_tls == 0 &&
flow->protos.ftp_imap_pop_smtp.auth_done == 0)
return(1);
break;