diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-10-27 22:02:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-10-27 22:02:20 +0000 |
commit | ebaf611123e405af3fcf1f59aa542198bc5c95b3 (patch) | |
tree | 86f0134fcd3332b462bd1eabb66b13766078745a /src/lua/lua_config.c | |
parent | 2206c2f9d17976cb3723b26240a02488ccbee88a (diff) | |
download | rspamd-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.c | 4 |
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); } } } |