]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: lua: Post init register function are not executed beyond the first one
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 10:02:58 +0000 (11:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 08:45:18 +0000 (09:45 +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

src/hlua.c

index 49db0f36ec7fc8aa834970bd871b6e1fdb5379d4..e1c316bd64955e95927d0324b3d211d6ee47b47f 100644 (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;