]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: bad args are returned for Lua actions
authorThierry FOURNIER <thierry.fournier@ozon.io>
Sun, 6 Jan 2019 18:38:49 +0000 (19:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2019 09:52:46 +0000 (10:52 +0100)
commit1725c2e3951d4eeae136125f417c620fa0ed3847
tree0c43dfe0ffa7b4f8c7049168253a3fa72961504b
parent7778b59be1d444c7e0cb5b2fd6c10d9aa54f773d
BUG/MINOR: lua: bad args are returned for Lua actions

In tcp actions case, the argument n - 1 is returned. For example:

  http-request lua.script stuff

display "stuff" as first arg

  tcp-request content lua.script stuff

display "lua.script" as first arg

The action parser doesn't use the *cur_arg value.

Thanks to Andy Franks for the bug report.

This patch mist be backported in haproxy-1.8 and haproxy-1.9
src/hlua.c