diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-03 19:23:03 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-03 19:23:03 +0000 |
commit | 54adbd226d3d0e72078047a36021aed9cc610c90 (patch) | |
tree | 2497cd10fc01bc6d0137bd9e03b73992b7a89969 /src/libmime/mime_headers.c | |
parent | e090b6d741c003ec1eeff8517895a981505034d8 (diff) | |
download | rspamd-54adbd226d3d0e72078047a36021aed9cc610c90.tar.gz rspamd-54adbd226d3d0e72078047a36021aed9cc610c90.zip |
[Fix] Fix empty headers simple canonicalization
Issue: #1904
MFH: rspamd-1.6
Diffstat (limited to 'src/libmime/mime_headers.c')
-rw-r--r-- | src/libmime/mime_headers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index 742b36fd3..95f8d9ba6 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -365,8 +365,9 @@ rspamd_mime_headers_process (struct rspamd_task *task, GHashTable *target, /* Header has only name, no value */ nh->value = ""; nh->decoded = ""; - rspamd_mime_header_add (task, target, order, nh, check_newlines); + nh->raw_len = p - nh->raw_value; nh->order = norder ++; + rspamd_mime_header_add (task, target, order, nh, check_newlines); state = 0; break; case 99: |