aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-11-21 23:31:52 +0100
committerLuca Deri <deri@ntop.org>2019-11-21 23:31:52 +0100
commitbdc0719e7633904749d97089844019b0bf589963 (patch)
tree65908e5944a194eb6897186c119634b49d677f7f /example
parentfc82cdfa4ac11e34725319620cdc549cb1b700d0 (diff)
Added auth failed support with FTP
Diffstat (limited to 'example')
-rw-r--r--example/reader_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 88d64126e..bf42e17f9 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -972,9 +972,10 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
|| /* POP */ is_ndpi_proto(flow, NDPI_PROTOCOL_MAIL_POP)
|| /* SMTP */ is_ndpi_proto(flow, NDPI_PROTOCOL_MAIL_SMTP)) {
if(flow->ndpi_flow->protos.ftp_imap_pop_smtp.username[0] != '\0')
- snprintf(flow->info, sizeof(flow->info), "User: %s][Pwd: %s",
+ snprintf(flow->info, sizeof(flow->info), "User: %s][Pwd: %s%s",
flow->ndpi_flow->protos.ftp_imap_pop_smtp.username,
- flow->ndpi_flow->protos.ftp_imap_pop_smtp.password);
+ flow->ndpi_flow->protos.ftp_imap_pop_smtp.password,
+ flow->ndpi_flow->protos.ftp_imap_pop_smtp.auth_failed ? "][Auth Failed" : "");
}
/* KERBEROS */
else if(is_ndpi_proto(flow, NDPI_PROTOCOL_KERBEROS)) {