aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-11 13:05:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-11 13:05:58 +0100
commit16e1e48f051ce709011c1930d9c7dea25915b847 (patch)
tree3720e0efe835361a0d4cc9079d08e31e2aa5c28b
parent28946b7ecf5de3b5817f8ec85981bd8d28dfe41d (diff)
downloadrspamd-16e1e48f051ce709011c1930d9c7dea25915b847.tar.gz
rspamd-16e1e48f051ce709011c1930d9c7dea25915b847.zip
Correctly handle arrays when reading mime_types.
-rw-r--r--src/plugins/fuzzy_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index ef10056e5..a2e03a16d 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -316,7 +316,7 @@ fuzzy_parse_rule (struct rspamd_config *cfg, const ucl_object_t *obj, gint cb_id
if ((value = ucl_object_find_key (obj, "mime_types")) != NULL) {
it = NULL;
- while ((cur = ucl_iterate_object (value, &it, obj->type == UCL_ARRAY))
+ while ((cur = ucl_iterate_object (value, &it, value->type == UCL_ARRAY))
!= NULL) {
rule->mime_types = g_list_concat (rule->mime_types,
parse_mime_types (ucl_obj_tostring (cur)));