aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-29 21:31:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-29 21:31:26 +0000
commit759bd5e95a02f235cb077c04d4a9688069fe381a (patch)
tree0d096a49950bfd8d9fe481ab25e312f8184849e8
parent421435ebca3e4aae4da454eea10367755772a6fd (diff)
downloadrspamd-759bd5e95a02f235cb077c04d4a9688069fe381a.tar.gz
rspamd-759bd5e95a02f235cb077c04d4a9688069fe381a.zip
[Fix] Another try to deal with #1998
Issue: #1998
-rw-r--r--src/libserver/milter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c
index 535184289..0d4c10db1 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -462,7 +462,7 @@ rspamd_milter_process_command (struct rspamd_milter_session *session,
rspamd_ftok_t *name_tok, *value_tok;
const guchar *zero_val;
- zero_val = memchr (zero + 1, '\0', cmdlen - (end - zero - 1));
+ zero_val = memchr (zero + 1, '\0', end - zero - 1);
if (zero_val != NULL && end > zero_val) {
name = rspamd_fstring_new_init (pos, zero - pos);