0001-BUG-MAJOR-fix-listening-IP-address-storage-for-front.patch 0002-BUG-MINOR-fix-listening-IP-address-storage-for-front.patch 0003-DOC-Fix-typo-so-fetch-is-properly-parsed-by-Cyril-s-.patch 0004-BUG-MAJOR-http-fix-breakage-of-reqdeny-causing-rando.patch 0005-BUG-MEDIUM-stick-tables-fix-breakage-in-table-conver.patch 0006-BUG-MEDIUM-dns-unbreak-DNS-resolver-after-header-fix.patch 0007-BUILD-fix-build-on-Solaris-11.patch 0008-CLEANUP-connection-fix-double-negation-on-memcmp.patch 0009-BUG-MEDIUM-stats-show-servers-state-may-show-an-serv.patch 0010-BUG-MEDIUM-fix-risk-of-segfault-with-show-tls-keys.patch 0011-BUG-MEDIUM-sticktables-segfault-in-some-configuratio.patch 0012-BUG-MEDIUM-lua-converters-doesn-t-work.patch 0013-BUG-MINOR-http-add-header-header-name-copied-twice.patch 0014-BUG-MEDIUM-http-add-header-buffer-overwritten.patch OBS-URL: https://build.opensuse.org/package/show/server:http/haproxy?expand=0&rev=129
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 7e3cfc9e48673314f7b970a054339306cef20928 Mon Sep 17 00:00:00 2001
|
|
From: Thierry Fournier <thierry.fournier@ozon.io>
|
|
Date: Fri, 27 May 2016 16:35:01 +0200
|
|
Subject: [PATCH 12/14] 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.
|
|
(cherry picked from commit 4a53bfdc1de46c78a23eabdefc4b418cff7d0403)
|
|
---
|
|
src/hlua.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/hlua.c b/src/hlua.c
|
|
index edd288d..185c4c1 100644
|
|
--- a/src/hlua.c
|
|
+++ b/src/hlua.c
|
|
@@ -5167,7 +5167,7 @@ static int hlua_sample_conv_wrapper(const struct arg *arg_p, struct sample *smp,
|
|
return 0;
|
|
}
|
|
hlua_smp2lua(stream->hlua.T, smp);
|
|
- stream->hlua.nargs = 2;
|
|
+ stream->hlua.nargs = 1;
|
|
|
|
/* push keywords in the stack. */
|
|
if (arg_p) {
|
|
--
|
|
2.6.6
|
|
|