diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 18:43:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 18:43:16 +0000 |
commit | 23b99d31a9a620b3c62848da4126dbbf0642f6db (patch) | |
tree | beb2ae9a991c97e9c6eb3c0f8baa8a43076e0a11 /src/lua/lua_task.c | |
parent | db425a97b301299cc0d2cb732a5e266e83216299 (diff) | |
download | rspamd-23b99d31a9a620b3c62848da4126dbbf0642f6db.tar.gz rspamd-23b99d31a9a620b3c62848da4126dbbf0642f6db.zip |
[Project] Allow to enable mempool debugging from the protocol
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index cf57ebf13..774bb0120 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1615,7 +1615,7 @@ lua_task_load_from_file (lua_State * L) } } - task = rspamd_task_new (NULL, cfg, NULL, NULL, NULL); + task = rspamd_task_new (NULL, cfg, NULL, NULL, NULL, FALSE); task->msg.begin = data->str; task->msg.len = data->len; rspamd_mempool_add_destructor (task->task_pool, @@ -1629,7 +1629,7 @@ lua_task_load_from_file (lua_State * L) if (!map) { err = strerror (errno); } else { - task = rspamd_task_new (NULL, cfg, NULL, NULL, NULL); + task = rspamd_task_new (NULL, cfg, NULL, NULL, NULL, FALSE); task->msg.begin = map; task->msg.len = sz; rspamd_mempool_add_destructor (task->task_pool, @@ -1683,7 +1683,7 @@ lua_task_load_from_string (lua_State * L) } } - task = rspamd_task_new (NULL, cfg, NULL, NULL, NULL); + task = rspamd_task_new (NULL, cfg, NULL, NULL, NULL, FALSE); task->msg.begin = g_malloc (message_len); memcpy ((gchar *)task->msg.begin, str_message, message_len); task->msg.len = message_len; @@ -1729,7 +1729,7 @@ lua_task_create (lua_State * L) } } - task = rspamd_task_new (NULL, cfg, NULL, NULL, ev_base); + task = rspamd_task_new (NULL, cfg, NULL, NULL, ev_base, FALSE); task->flags |= RSPAMD_TASK_FLAG_EMPTY; ptask = lua_newuserdata (L, sizeof (*ptask)); |