commit | 31a841c323b0e9692695a57d4747f71a32b9fb68 | [log] [tgz] |
---|---|---|
author | Nathan Neulinger <nneul@neulinger.org> | Tue Mar 03 20:32:47 2020 -0600 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu May 28 15:15:52 2020 +0200 |
tree | aa9c64bdf3c0ef87578ac48964f0efc39f18d58c | |
parent | 3d5e1218429f7c06122ad612bbda561030706cab [diff] |
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()]