mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 04:43:37 -04:00
CLEANUP: lua: control executed twice
The availaible size in the stack is check two times. This patch removes this double check. Must be backported in 1.6
This commit is contained in:
parent
02564fd153
commit
b41f22f59c
1 changed files with 0 additions and 5 deletions
|
|
@ -5378,11 +5378,6 @@ static int hlua_sample_fetch_wrapper(const struct arg *arg_p, struct sample *smp
|
|||
RESET_SAFE_LJMP(stream->hlua.T);
|
||||
return 0;
|
||||
}
|
||||
if (!lua_checkstack(stream->hlua.T, 1)) {
|
||||
SEND_ERR(smp->px, "Lua sample-fetch '%s': full stack.\n", fcn->name);
|
||||
RESET_SAFE_LJMP(stream->hlua.T);
|
||||
return 0;
|
||||
}
|
||||
hlua_arg2lua(stream->hlua.T, arg_p);
|
||||
stream->hlua.nargs++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue