]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua: handle stick table implicit arguments right.
authorOlivier Houchard <cognet@ci0.org>
Mon, 12 Sep 2022 22:35:53 +0000 (00:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Oct 2022 17:08:10 +0000 (19:08 +0200)
commit14f62688839dc7245ca87e040f14fbd2147698e6
tree86cffa8662ed461b51780cea4c36c840bdfa028e
parentca43161a8da278ec0948511f595827daf29a071e
BUG/MEDIUM: lua: handle stick table implicit arguments right.

In hlua_lua2arg_check(), we allow for the first argument to not be
provided, if it has a type we know, this is true for frontend, backend,
and stick table. However, the stick table code was changed. It used
to be deduced from the proxy, but it is now directly provided in struct
args. So setting the proxy there no longer work, and we have to
explicitely set the stick table.
Not doing so will lead the code do use the proxy pointer as a stick
table pointer, which will likely cause crashes.

This should be backported up to 2.0.
src/hlua.c