From: Andrew Lewis Date: Sun, 5 Apr 2015 19:00:57 +0000 (+0200) Subject: Fix task:get_queue_id() X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e74c8153547e7875028ea7e426072c6d15fe6d00;p=rspamd.git Fix task:get_queue_id() --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 5c1a560f6..618e613df 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);