mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MEDIUM: lua: converters doesn't work
The number of arguments pushed in the stack are false, so we try to execute a function out of the stack. This function is always a nil pointer, so the following message is displayed. Lua converter 'testconv': runtime error: attempt to call a nil value. Thanks Michael Ezzell for the repporting. This patch must be backported in the 1.6 version.
This commit is contained in:
parent
8225bb4577
commit
4a53bfdc1d
@ -5163,7 +5163,7 @@ static int hlua_sample_conv_wrapper(const struct arg *arg_p, struct sample *smp,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
hlua_smp2lua(stream->hlua.T, smp);
|
hlua_smp2lua(stream->hlua.T, smp);
|
||||||
stream->hlua.nargs = 2;
|
stream->hlua.nargs = 1;
|
||||||
|
|
||||||
/* push keywords in the stack. */
|
/* push keywords in the stack. */
|
||||||
if (arg_p) {
|
if (arg_p) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user