From 0d217fc8880ed3b6902f72022da7d38f324c368a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 2 May 2018 19:04:21 +0100 Subject: [PATCH] [CritFix] Do not use volatile Lua strings as UCL keys Issue: #2211 Closes: #2211 --- contrib/libucl/lua_ucl.c | 4 ++-- 1 file 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; } } } -- 2.39.5