diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-23 22:25:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-23 22:25:55 +0000 |
commit | cb677b055c2ef399e2a0cde0a098d6adbff0d54c (patch) | |
tree | 478333369cc49ef1bf2d8f026e3ed9eacd243f4f | |
parent | cfafa30c666d4c895370d0d5bee20cbcaf0c0fe4 (diff) | |
download | rspamd-cb677b055c2ef399e2a0cde0a098d6adbff0d54c.tar.gz rspamd-cb677b055c2ef399e2a0cde0a098d6adbff0d54c.zip |
Fix function invocation.
-rw-r--r-- | src/libmime/mime_expressions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index 6034e3357..bf87d252d 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -1954,13 +1954,13 @@ rspamd_content_type_check (struct rspamd_task *task, msg_warn ("no parameters to function"); return FALSE; } - arg_pattern = &g_array_index (args, struct expression_argument, 1); + arg_pattern = &g_array_index (args, struct expression_argument, 0); part = g_mime_message_get_mime_part (task->message); if (part) { ct = (GMimeContentType *)g_mime_object_get_content_type (part); if (args->len >= 2) { - arg1 = &g_array_index (args, struct expression_argument, 2); + arg1 = &g_array_index (args, struct expression_argument, 1); if (g_ascii_strncasecmp (arg1->data, "true", sizeof ("true") - 1) == 0) { recursive = TRUE; |