aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/mail_smtp.c
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-04-15 08:35:28 +0200
committerGitHub <noreply@github.com>2020-04-15 08:35:28 +0200
commitd3b4b81d6fd9adc5bbe6c04e45d51989bacd4102 (patch)
tree2595f332953f42ed337db40f3268c435a4767da4 /src/lib/protocols/mail_smtp.c
parentd665df64e297051cd5b48605974846fa7076d883 (diff)
parente84563f9710ca1996eb7428a22a058527e604431 (diff)
Merge pull request #867 from IvanNardi/memory-leaks
Memory leaks
Diffstat (limited to 'src/lib/protocols/mail_smtp.c')
-rw-r--r--src/lib/protocols/mail_smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/mail_smtp.c b/src/lib/protocols/mail_smtp.c
index 0b4c47be8..025161be8 100644
--- a/src/lib/protocols/mail_smtp.c
+++ b/src/lib/protocols/mail_smtp.c
@@ -125,7 +125,7 @@ void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct,
&& (packet->line[a].ptr[3] == 'H' || packet->line[a].ptr[3] == 'h')
&& packet->line[a].ptr[4] == ' ') {
#ifdef SMTP_DEBUG
- printf("%s() AUTH [%s]\n", __FUNCTION__, packet->line[a].ptr);
+ printf("%s() AUTH [%.*s]\n", __FUNCTION__, packet->line[a].len, packet->line[a].ptr);
#endif
flow->l4.tcp.smtp_command_bitmask |= SMTP_BIT_AUTH;
@@ -133,7 +133,7 @@ void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct,
} else {
if(packet->line[a].ptr[3] != ' ') {
#ifdef SMTP_DEBUG
- printf("%s() => [%s]\n", __FUNCTION__, packet->line[a].ptr);
+ printf("%s() => [%.*s]\n", __FUNCTION__, packet->line[a].len, packet->line[a].ptr);
#endif
if(flow->protos.ftp_imap_pop_smtp.auth_found) {