]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: httpclient/lua: misplaced luaL_buffinit()
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 2 Nov 2021 09:40:06 +0000 (10:40 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 2 Nov 2021 09:40:06 +0000 (10:40 +0100)
commitd1187eb3e1727b6ccf21ec705d4a51b11afba5f5
tree90dba2b3e29e0a7733ca3cabd8e5133539ca74b1
parent7da35bff9fe29bd25e2dab89c68583bdc0ccd94c
BUG/MINOR: httpclient/lua: misplaced luaL_buffinit()

Some luaL_buffinit() call was done before the push of the variable name,
where it seems to work correctly with lua < 5.4.3, it brokes
systematically on this version.

This patch inverts the pushstring and the buffinit.
src/hlua.c