diff options
author | Luca Deri <deri@ntop.org> | 2019-12-09 19:04:13 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-12-09 19:04:13 +0100 |
commit | bf5e9b7b0b83b93116786e7b982dbe4db3645ffa (patch) | |
tree | 97c669ec8754b7e8dad88096b7458089fef55163 /src/lib/protocols/mail_smtp.c | |
parent | 7fe9dddf6549c30677da9562f02e990c85a8bbd5 (diff) |
Fixed bug that prevented SMTP email to be dissected
Diffstat (limited to 'src/lib/protocols/mail_smtp.c')
-rw-r--r-- | src/lib/protocols/mail_smtp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/protocols/mail_smtp.c b/src/lib/protocols/mail_smtp.c index 353d2997d..dca46859a 100644 --- a/src/lib/protocols/mail_smtp.c +++ b/src/lib/protocols/mail_smtp.c @@ -147,7 +147,7 @@ void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct, packet->line[a].ptr, packet->line[a].len); #ifdef SMTP_DEBUG - printf("%s() => [auth: %u] (1) [%s]\n", __FUNCTION__, flow->protos.ftp_imap_pop_smtp.auth_found, buf); + printf("%s() => [auth: %u] (username) [%s]\n", __FUNCTION__, flow->protos.ftp_imap_pop_smtp.auth_found, buf); #endif out = ndpi_base64_decode((const u_char*)buf, (size_t)strlen((const char*)buf), &out_len); @@ -168,7 +168,7 @@ void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct, packet->line[a].ptr, packet->line[a].len); #ifdef SMTP_DEBUG - printf("%s() => [auth: %u] (2) [%s]\n", __FUNCTION__, flow->protos.ftp_imap_pop_smtp.auth_found, buf); + printf("%s() => [auth: %u] (password) [%s]\n", __FUNCTION__, flow->protos.ftp_imap_pop_smtp.auth_found, buf); #endif out = ndpi_base64_decode((const u_char*)buf, (size_t)strlen((const char*)buf), &out_len); @@ -182,8 +182,6 @@ void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct, NDPI_EXCLUDE_PROTO(ndpi_struct, flow); return; } - - flow->protos.ftp_imap_pop_smtp.auth_found++; } } } |