aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/lua_repl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-11 20:48:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-11 20:48:50 +0100
commitca3a40439aba6681401521d8d43f4e283b4a72d5 (patch)
tree318e5ec784d708408e73960e1ca6334ec00bc461 /src/rspamadm/lua_repl.c
parentdd0d565be66f02de3d190e9fd9106fa4ab10e668 (diff)
downloadrspamd-ca3a40439aba6681401521d8d43f4e283b4a72d5.tar.gz
rspamd-ca3a40439aba6681401521d8d43f4e283b4a72d5.zip
[Minor] Add some fail-safety
Diffstat (limited to 'src/rspamadm/lua_repl.c')
-rw-r--r--src/rspamadm/lua_repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c
index 2df02a9de..a43527823 100644
--- a/src/rspamadm/lua_repl.c
+++ b/src/rspamadm/lua_repl.c
@@ -431,7 +431,7 @@ rspamadm_lua_message_handler (lua_State *L, gint argc, gchar **argv)
rspamd_printf ("cannot open %s: %s\n", argv[i], strerror (errno));
}
else {
- task = rspamd_task_new (NULL, NULL, NULL, NULL);
+ task = rspamd_task_new (NULL, rspamd_main->cfg, NULL, NULL);
if (!rspamd_task_load_message (task, NULL, map, len)) {
rspamd_printf ("cannot load %s\n", argv[i]);