aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-18 17:52:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-18 17:52:16 +0000
commit7b4a3195897f7e3b4e01ba01ef02c2fc74a9f904 (patch)
tree32d3f65275a913695213ded1e077e1b9928d11a4 /src/libmime/mime_parser.c
parentac585813528a7ca13e63bd53704b0bbfb2d3b773 (diff)
downloadrspamd-7b4a3195897f7e3b4e01ba01ef02c2fc74a9f904.tar.gz
rspamd-7b4a3195897f7e3b4e01ba01ef02c2fc74a9f904.zip
[Fix] Core: Fix processing of NDNs of certain type
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index 1dc3d85d8..4439d055e 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -1215,13 +1215,16 @@ rspamd_mime_parse_message (struct rspamd_task *task,
FALSE);
}
}
+ else {
+ body_pos = 0;
+
+ hdrs = rspamd_message_get_header_from_hash (npart->raw_headers,
+ task->task_pool,
+ "Content-Type", FALSE);
+ }
pbegin = part->parsed_data.begin + body_pos;
plen = part->parsed_data.len - body_pos;
-
- hdrs = rspamd_message_get_header_from_hash (npart->raw_headers,
- task->task_pool,
- "Content-Type", FALSE);
}
npart->raw_data.begin = pbegin;