From: Vsevolod Stakhov Date: Mon, 25 Nov 2019 17:40:48 +0000 (+0000) Subject: [Minor] Fix task with no config case X-Git-Tag: 2.3~297 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=843a6e1bcd0bc3a50079ecccf7685f590c678004;p=thirdparty%2Frspamd.git [Minor] Fix task with no config case --- diff --git a/src/libmime/message.c b/src/libmime/message.c index 18eef9f221..b2b53d4ba1 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) {