aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-08 19:16:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-08 19:16:56 +0100
commite7a43c0fb358c1947fa3e21f2f2442408372d348 (patch)
treee895630f0a9c21d88da6ef95e077f3baaa3cea13 /src/lua
parente825c3d0d96836c341aeb252c95cf11bb7eab67b (diff)
downloadrspamd-e7a43c0fb358c1947fa3e21f2f2442408372d348.tar.gz
rspamd-e7a43c0fb358c1947fa3e21f2f2442408372d348.zip
[Minor] Allow to set custom pool for a task
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index fc051814b..aef1b7976 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -649,7 +649,7 @@ lua_util_process_message (lua_State *L)
if (cfg != NULL && message != NULL) {
base = event_init ();
rspamd_init_filters (cfg, FALSE, NULL);
- task = rspamd_task_new (NULL, cfg);
+ task = rspamd_task_new (NULL, cfg, NULL);
task->ev_base = base;
task->msg.begin = rspamd_mempool_alloc (task->task_pool, mlen);
rspamd_strlcpy ((gpointer)task->msg.begin, message, mlen);