summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_cfg_file.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-20 16:32:23 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-20 16:32:23 +0400
commit2d8eebcf7a0951d3d1189ddface7678fea76dd4c (patch)
tree7a1748e4d3633c3b8def3de8f2a08fb370c7e61d /src/lua/lua_cfg_file.c
parentd4b35de4315753629ac5b107968e6194eac85d24 (diff)
downloadrspamd-2d8eebcf7a0951d3d1189ddface7678fea76dd4c.tar.gz
rspamd-2d8eebcf7a0951d3d1189ddface7678fea76dd4c.zip
* Bugfixes:
- handle '\' characters in lua strings correctly - fix lua initialization - avoid of using global lua state (global L) - fix listen sockets hash to allow multiply workers of same type but on different listen sockets - fix modules options inserting to allow multiply options of the same name - fix parsing of lua options - fix lua rules
Diffstat (limited to 'src/lua/lua_cfg_file.c')
-rw-r--r--src/lua/lua_cfg_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c
index e087600fd..799a603c0 100644
--- a/src/lua/lua_cfg_file.c
+++ b/src/lua/lua_cfg_file.c
@@ -57,6 +57,7 @@ lua_check_element (memory_pool_t *pool, const gchar *name, GList **options, stru
/* New option */
*opt = memory_pool_alloc0 (pool, sizeof (struct module_opt));
(*opt)->is_lua = TRUE;
+ (*opt)->param = memory_pool_strdup (pool, name);
*options = g_list_prepend (*options, *opt);
}
}
@@ -76,7 +77,6 @@ lua_process_module (lua_State *L, const gchar *param, struct config_file *cfg)
}
/* Now iterate throught module table */
- lua_gettable (L, -1);
for (lua_pushnil(L); lua_next(L, -2); lua_pop(L, 1)) {
/* key - -2, value - -1 */
name = luaL_checkstring (L, -2);