git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9eb345
)
Ensure $smtp_command is initialized before it can be expanded (bug 1182).
author
Jeremy Harris
<jgh146exb@wizmail.org>
Mon, 23 Apr 2012 22:57:47 +0000
(23:57 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Mon, 23 Apr 2012 22:57:47 +0000
(23:57 +0100)
src/src/smtp_in.c
patch
|
blob
|
history
diff --git
a/src/src/smtp_in.c
b/src/src/smtp_in.c
index 476bbf0c27787bb7907d6d3906f1fab29c2b990d..23bc5315e8f22978a6809c46bdd113d8af0cc0d8 100644
(file)
--- 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