Browse Source

[Minor] Fix task with no config case

tags/2.3
Vsevolod Stakhov 4 years ago
parent
commit
843a6e1bcd
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/libmime/message.c

+ 3
- 1
src/libmime/message.c View File

@@ -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) {

Loading…
Cancel
Save