mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MEDIUM: lua: Store stick tables into the sample's t field
This patch fixes issue #306.
This bug was introduced in the stick table refactoring in
1b8e68e89a.
This fix must be backported to 2.0.
This commit is contained in:
parent
2e89dec513
commit
9fe7c6376a
1 changed files with 2 additions and 2 deletions
|
|
@ -713,8 +713,8 @@ __LJMP int hlua_lua2arg_check(lua_State *L, int first, struct arg *argp,
|
|||
memcpy(trash.area, argp[idx].data.str.area,
|
||||
argp[idx].data.str.data);
|
||||
trash.area[argp[idx].data.str.data] = 0;
|
||||
argp[idx].data.prx = proxy_tbl_by_name(trash.area);
|
||||
if (!argp[idx].data.prx)
|
||||
argp[idx].data.t = stktable_find_by_name(trash.area);
|
||||
if (!argp[idx].data.t)
|
||||
WILL_LJMP(luaL_argerror(L, first + idx, "table doesn't exist"));
|
||||
argp[idx].type = ARGT_TAB;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue