diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-02 19:04:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-02 19:05:14 +0100 |
commit | 0d217fc8880ed3b6902f72022da7d38f324c368a (patch) | |
tree | c216d4e358f869e2f083996085233506e001fa44 | |
parent | 160d5d42d352563b0172401b913211003d85ff7d (diff) | |
download | rspamd-0d217fc8880ed3b6902f72022da7d38f324c368a.tar.gz rspamd-0d217fc8880ed3b6902f72022da7d38f324c368a.zip |
[CritFix] Do not use volatile Lua strings as UCL keys
Issue: #2211
Closes: #2211
-rw-r--r-- | contrib/libucl/lua_ucl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c index 045308097..d2557a57f 100644 --- a/contrib/libucl/lua_ucl.c +++ b/contrib/libucl/lua_ucl.c @@ -410,8 +410,8 @@ ucl_object_lua_fromtable (lua_State *L, int idx, ucl_string_flags_t flags) DL_FOREACH (obj, cur) { if (cur->keylen == 0) { - cur->keylen = keylen; - cur->key = k; + cur->keylen = obj->keylen; + cur->key = obj->key; } } } |