diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-29 17:02:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-29 17:02:39 +0100 |
commit | bb63c3f414e8993f6d22f527316b4c9982793da9 (patch) | |
tree | c36aa8d9a4a36c40a8aae8b095a32feb3df89a28 /src/libmime/mime_parser.c | |
parent | f92898a226c163e8084c3ffd9fff83ccdd66a802 (diff) | |
download | rspamd-bb63c3f414e8993f6d22f527316b4c9982793da9.tar.gz rspamd-bb63c3f414e8993f6d22f527316b4c9982793da9.zip |
[Minor] Properly deal with content type parameter
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index e994dc795..193a3808c 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -313,7 +313,8 @@ rspamd_mime_part_get_cd (struct rspamd_task *task, struct rspamd_mime_part *part guint i; GPtrArray *hdrs; struct rspamd_content_disposition *cd = NULL; - rspamd_ftok_t srch, *found; + rspamd_ftok_t srch; + struct rspamd_content_type_param *found; hdrs = rspamd_message_get_header_from_hash (part->raw_headers, task->task_pool, @@ -336,7 +337,7 @@ rspamd_mime_part_get_cd (struct rspamd_task *task, struct rspamd_mime_part *part if (found) { cd->type = RSPAMD_CT_ATTACHMENT; - memcpy (&cd->filename, found, sizeof (cd->filename)); + memcpy (&cd->filename, &found->value, sizeof (cd->filename)); } } |