diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 17:59:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 17:59:57 +0100 |
commit | b907681d651cc12d4159190a83aee93a473ee456 (patch) | |
tree | d391abb5a2621c55b6eda4719f7d57dbc0f07954 | |
parent | eab784a8fa4c392e27bd59426f60f94fb6748569 (diff) | |
download | rspamd-b907681d651cc12d4159190a83aee93a473ee456.tar.gz rspamd-b907681d651cc12d4159190a83aee93a473ee456.zip |
Fix expressions.
-rw-r--r-- | src/libmime/expressions.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libmime/expressions.c b/src/libmime/expressions.c index 0289daa57..c6c7d7ddf 100644 --- a/src/libmime/expressions.c +++ b/src/libmime/expressions.c @@ -1049,12 +1049,10 @@ rspamd_header_exists (struct rspamd_task * task, GList * args, void *unused) } debug_task ("try to get header %s", (gchar *)arg->data); - headerlist = message_get_header (task->task_pool, - task->message, + headerlist = message_get_header (task, (gchar *)arg->data, FALSE); if (headerlist) { - g_list_free (headerlist); return TRUE; } return FALSE; |