]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: Add missing string length for lua sticktable lookup
authorNathan Neulinger <nneul@neulinger.org>
Wed, 4 Mar 2020 02:32:47 +0000 (20:32 -0600)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 May 2020 13:15:52 +0000 (15:15 +0200)
commit31a841c323b0e9692695a57d4747f71a32b9fb68
treeaa9c64bdf3c0ef87578ac48964f0efc39f18d58c
parent3d5e1218429f7c06122ad612bbda561030706cab
BUG/MINOR: lua: Add missing string length for lua sticktable lookup

In hlua_stktable_lookup(), the key length is never set so all
stktable:lookup("key") calls return nil from lua.

This patch must be backported as far as 1.9.

[Cf: I slightly updated the patch to use lua_tolstring() instead of
     luaL_checkstring() + strlen()]
src/hlua_fcn.c