mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUG/MINOR: lua: error in detection of mandatory arguments
The last mandatory arguments in sample fetches or converters are ignored. This is due to a bad control.
This commit is contained in:
parent
933e5deb2b
commit
dd6f4b43e2
1 changed files with 1 additions and 1 deletions
|
|
@ -530,7 +530,7 @@ __LJMP int hlua_lua2arg_check(lua_State *L, int first, struct arg *argp,
|
|||
|
||||
/* Check for mandatory arguments. */
|
||||
if (argp[idx].type == ARGT_STOP) {
|
||||
if (idx + 1 < min_arg)
|
||||
if (idx < min_arg)
|
||||
WILL_LJMP(luaL_argerror(L, first + idx, "Mandatory argument expected"));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue