diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-25 17:40:48 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-25 17:40:48 +0000 |
commit | 843a6e1bcd0bc3a50079ecccf7685f590c678004 (patch) | |
tree | e74a1a7f379b8d9a505c7871d8745c803b94e986 | |
parent | 5e664e839c9a7a45ab19cdfa769fdbbfef73b1a7 (diff) | |
download | rspamd-843a6e1bcd0bc3a50079ecccf7685f590c678004.tar.gz rspamd-843a6e1bcd0bc3a50079ecccf7685f590c678004.zip |
[Minor] Fix task with no config case
-rw-r--r-- | src/libmime/message.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 18eef9f22..b2b53d4ba 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1343,7 +1343,9 @@ rspamd_message_process (struct rspamd_task *task) msg_err_task ("cannot require lua_content.maybe_process_mime_part"); } - funcs_top = lua_gettop (L); + if (L) { + funcs_top = lua_gettop (L); + } PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, parts), i, part) { if (magic_func_pos != -1 && part->parsed_data.len > 0) { |