diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-23 18:09:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-23 18:09:28 +0000 |
commit | a1e3ab7e5ef8e2c7a95214cb433dc9594983b21a (patch) | |
tree | f4d3cc0ba5b408075b898e7737648ec32acd32bf | |
parent | f2ca6b2e501c5d2e0be9489341ed2f46fc95d39f (diff) | |
download | rspamd-a1e3ab7e5ef8e2c7a95214cb433dc9594983b21a.tar.gz rspamd-a1e3ab7e5ef8e2c7a95214cb433dc9594983b21a.zip |
[Minor] Do not expand implicit arrays as it breaks things
-rw-r--r-- | lualib/lua_redis.lua | 4 | ||||
-rw-r--r-- | src/lua/lua_common.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index e77f0069f..cb4b46e6c 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -374,6 +374,10 @@ local function try_load_redis_servers(options, rspamd_config, result) return true end + lutil.debugm(N, rspamd_config, + 'cannot load redis server from obj: %s, processed to %s', + options, result) + return false end diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index ac6b11e18..dcab21530 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -2367,7 +2367,7 @@ rspamd_lua_try_load_redis (lua_State *L, const ucl_object_t *obj, } /* Function arguments */ - ucl_object_push_lua (L, obj, true); + ucl_object_push_lua (L, obj, false); pcfg = lua_newuserdata (L, sizeof (*pcfg)); rspamd_lua_setclass (L, "rspamd{config}", -1); *pcfg = cfg; |