summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2012-04-23 23:57:47 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2012-04-23 23:57:47 +0100
commit2416c261306ff5e1248c5501b736b031a27367f5 (patch)
treec5ca58839aad53baa2fcc7e7e84d7474f3868b81 /src
parente9eb345703f60f91a25b474ad3f85ebee5193e9e (diff)
Ensure $smtp_command is initialized before it can be expanded (bug 1182).
Diffstat (limited to 'src')
-rw-r--r--src/src/smtp_in.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index 476bbf0c2..23bc5315e 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -1396,6 +1396,7 @@ smtp_cmd_buffer = (uschar *)malloc(2*smtp_cmd_buffer_size + 2);
if (smtp_cmd_buffer == NULL)
log_write(0, LOG_MAIN|LOG_PANIC_DIE,
"malloc() failed for SMTP command buffer");
+smtp_cmd_buffer[0] = 0;
smtp_data_buffer = smtp_cmd_buffer + smtp_cmd_buffer_size + 1;
/* For batched input, the protocol setting can be overridden from the