]> source.dussan.org Git - rspamd.git/commitdiff
Adopt for 0.8.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Feb 2015 13:13:14 +0000 (13:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Feb 2015 13:13:14 +0000 (13:13 +0000)
src/lua/lua_task.c

index 3e09934c7404da51edcb656c47d2a2a95db35e10..b1a20647686ceb86041f60bfeff987e4afdd1409 100644 (file)
@@ -968,8 +968,8 @@ lua_task_get_content (lua_State * L)
 {
        struct rspamd_task *task = lua_check_task (L);
 
-       if (task) {
-               lua_pushlstring (L, task->msg.start, task->msg.len);
+       if (task && task->msg) {
+               lua_pushlstring (L, task->msg->str, task->msg->len);
                return 1;
        }