diff options
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 590ee57d6..4fc37ad3d 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -683,6 +683,7 @@ rspamd_mime_parse_normal_part (struct rspamd_task *task, } part->part_number = MESSAGE_FIELD (task, parts)->len; + part->urls = g_ptr_array_new (); g_ptr_array_add (MESSAGE_FIELD (task, parts), part); msg_debug_mime ("parsed data part %T/%T of length %z (%z orig), %s cte", &part->ct->type, &part->ct->subtype, part->parsed_data.len, @@ -1017,6 +1018,7 @@ rspamd_mime_parse_multipart_part (struct rspamd_task *task, } part->part_number = MESSAGE_FIELD (task, parts)->len; + part->urls = g_ptr_array_new (); g_ptr_array_add (MESSAGE_FIELD (task, parts), part); st->nesting ++; rspamd_mime_part_get_cte (task, part->raw_headers, part, FALSE); |