aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-29 20:16:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-29 20:16:08 +0000
commit421435ebca3e4aae4da454eea10367755772a6fd (patch)
tree7583eacf951d82c019827d7bea95b51657b9b7de /src
parent034f835adde059fe777ee9fc3d42fa7b2193d3bc (diff)
downloadrspamd-421435ebca3e4aae4da454eea10367755772a6fd.tar.gz
rspamd-421435ebca3e4aae4da454eea10367755772a6fd.zip
[Fix] Another try to fix #1998
Issue: #1998 MFH: rspamd-1.6
Diffstat (limited to 'src')
-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 6ebf48838..535184289 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));
+ zero_val = memchr (zero + 1, '\0', cmdlen - (end - zero - 1));
if (zero_val != NULL && end > zero_val) {
name = rspamd_fstring_new_init (pos, zero - pos);