projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcdf4de
)
BUG/MINOR: lua: Post init register function are not executed beyond the first one
author
Thierry Fournier
<thierry.fournier@ozon.io>
Sat, 28 Nov 2020 10:02:58 +0000
(11:02 +0100)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Mon, 14 Dec 2020 10:38:32 +0000
(11:38 +0100)
Just because if the first init is a success we return success in place
of continuing the loop.
This patch could be backported until 1.8
(cherry picked from commit
13d08b73eb99741ca5903e8414b85a1d0b919594
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit
5a964670d5c1bf45b7660afbfdd078f745fa0bf9
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit
093c9ed1f3b9ba2efe5b1c9c90276357309dd2a6
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c
patch
|
blob
|
history
diff --git
a/src/hlua.c
b/src/hlua.c
index
a251618
..
6ec5409
100644
(file)
--- a/
src/hlua.c
+++ b/
src/hlua.c
@@
-7680,7
+7680,7
@@
int hlua_post_init()
switch (ret) {
case HLUA_E_OK:
lua_pop(gL.T, -1);
- return 1;
+ break;
case HLUA_E_AGAIN:
ha_alert("Lua init: yield not allowed.\n");
return 0;