aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-27 22:02:20 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-27 22:02:20 +0000
commitebaf611123e405af3fcf1f59aa542198bc5c95b3 (patch)
tree86f0134fcd3332b462bd1eabb66b13766078745a /src/lua/lua_config.c
parent2206c2f9d17976cb3723b26240a02488ccbee88a (diff)
downloadrspamd-ebaf611123e405af3fcf1f59aa542198bc5c95b3.tar.gz
rspamd-ebaf611123e405af3fcf1f59aa542198bc5c95b3.zip
Avoid endless recursion in export ucl to lua.
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index df8526d0f..4e8e6eb6d 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -163,7 +163,7 @@ lua_config_get_module_opt (lua_State * L)
if (mname && optname) {
obj = get_module_opt (cfg, mname, optname);
if (obj) {
- return lua_rcl_obj_push (L, obj);
+ return lua_rcl_obj_push (L, obj, TRUE);
}
}
}
@@ -198,7 +198,7 @@ lua_config_get_all_opt (lua_State * L)
if (mname) {
obj = ucl_obj_get_key (cfg->rcl_obj, mname);
if (obj != NULL) {
- return lua_rcl_obj_push (L, obj);
+ return lua_rcl_obj_push (L, obj, TRUE);
}
}
}