]> source.dussan.org Git - rspamd.git/commitdiff
* Fix loop
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 14 Oct 2009 11:21:28 +0000 (15:21 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 14 Oct 2009 11:21:28 +0000 (15:21 +0400)
src/lua/lua_task.c

index 1b82213814d74bab3d52b2ba52d53eed86e56144..7912b7de047e88c4519beda9e18a6d2c00f6c7d4 100644 (file)
@@ -394,6 +394,7 @@ lua_task_get_recipients (lua_State *L)
                        while (cur) {
                                lua_pushstring (L, (char *)cur->data);
                                lua_rawseti (L, -2, i++);
+                               cur = g_list_next (cur);
                        }
                        return 1;
                }