From: Andrew Lewis Date: Sun, 5 Apr 2015 19:00:57 +0000 (+0200) Subject: Fix task:get_queue_id() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F257%2Fhead;p=thirdparty%2Frspamd.git Fix task:get_queue_id() --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 5c1a560f6f..618e613df7 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1237,7 +1237,7 @@ lua_task_get_received_headers (lua_State * L) static gint lua_task_get_queue_id (lua_State *L) { - struct rspamd_task *task = lua_check_task (L, 1); + struct rspamd_task *task = lua_check_task (L); if (task && task->queue_id != NULL && strcmp (task->queue_id, "undef") != 0) { lua_pushstring (L, task->queue_id);