diff options
author | Luca Deri <deri@ntop.org> | 2019-10-21 01:27:07 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-10-21 01:27:07 +0200 |
commit | 960aa77b6da9bd70081621ae8e975e548ce7cc13 (patch) | |
tree | 88479d5b26613387aeedb5b6977ec28e4b980e25 /src/lib/protocols/mail_imap.c | |
parent | 58daa5ed7d2c4fe26a5b4bdc77f117ad3b027a71 (diff) |
Reworked email metaata extraction
Diffstat (limited to 'src/lib/protocols/mail_imap.c')
-rw-r--r-- | src/lib/protocols/mail_imap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/protocols/mail_imap.c b/src/lib/protocols/mail_imap.c index 1ebb18487..24b596b6b 100644 --- a/src/lib/protocols/mail_imap.c +++ b/src/lib/protocols/mail_imap.c @@ -175,8 +175,8 @@ void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct, if(column) { column[0] = '\0'; - snprintf(flow->protos.imap.username, - sizeof(flow->protos.imap.username), + snprintf(flow->protos.ftp_imap_pop_smtp.username, + sizeof(flow->protos.ftp_imap_pop_smtp.username), "%s", item); column = strchr(&column[1], '"'); @@ -186,8 +186,8 @@ void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct, if(column) { column[0] = '\0'; - snprintf(flow->protos.imap.password, - sizeof(flow->protos.imap.password), + snprintf(flow->protos.ftp_imap_pop_smtp.password, + sizeof(flow->protos.ftp_imap_pop_smtp.password), "%s", item); } } @@ -319,7 +319,7 @@ void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct, || (flow->l4.tcp.mail_imap_stage == 5) || (flow->l4.tcp.mail_imap_stage == 7) ) { - if((flow->protos.imap.username[0] != '\0') + if((flow->protos.ftp_imap_pop_smtp.username[0] != '\0') || (flow->l4.tcp.mail_imap_stage >= 7)) { NDPI_LOG_INFO(ndpi_struct, "found MAIL_IMAP\n"); ndpi_int_mail_imap_add_connection(ndpi_struct, flow); |