summaryrefslogtreecommitdiffstats
path: root/contrib/libucl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-02 19:04:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-02 19:05:14 +0100
commit0d217fc8880ed3b6902f72022da7d38f324c368a (patch)
treec216d4e358f869e2f083996085233506e001fa44 /contrib/libucl
parent160d5d42d352563b0172401b913211003d85ff7d (diff)
downloadrspamd-0d217fc8880ed3b6902f72022da7d38f324c368a.tar.gz
rspamd-0d217fc8880ed3b6902f72022da7d38f324c368a.zip
[CritFix] Do not use volatile Lua strings as UCL keys
Issue: #2211 Closes: #2211
Diffstat (limited to 'contrib/libucl')
-rw-r--r--contrib/libucl/lua_ucl.c4
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;
}
}
}