diff options
-rw-r--r-- | src/libmime/mime_headers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index aed7575eb..582f11d7a 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -366,7 +366,7 @@ rspamd_mime_headers_process (struct rspamd_task *task, } } /* Strip last space that can be added by \r\n parsing */ - if (*(tp - 1) == ' ') { + if (tp > tmp && *(tp - 1) == ' ') { tp--; } |