mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MINOR: lua: Post init register function are not executed beyond the first one
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
This commit is contained in:
parent
77a88943d6
commit
13d08b73eb
@ -8128,7 +8128,7 @@ int hlua_post_init()
|
|||||||
switch (ret) {
|
switch (ret) {
|
||||||
case HLUA_E_OK:
|
case HLUA_E_OK:
|
||||||
lua_pop(gL.T, -1);
|
lua_pop(gL.T, -1);
|
||||||
return 1;
|
break;
|
||||||
case HLUA_E_AGAIN:
|
case HLUA_E_AGAIN:
|
||||||
ha_alert("Lua init: yield not allowed.\n");
|
ha_alert("Lua init: yield not allowed.\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user