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:
Thierry Fournier 2020-11-28 11:02:58 +01:00 committed by Willy Tarreau
parent 77a88943d6
commit 13d08b73eb

View File

@ -8128,7 +8128,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;