In one case before exiting leaving the function the panic handler was not
reset.

Introduced in 69c581a09271e91d306e7b9080502a36abdc415e, which is 2.5+.
No backport required.
---
 src/hlua.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/hlua.c b/src/hlua.c
index 72d232491..915356c09 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -10005,6 +10005,7 @@ static int hlua_filter_new(struct stream *s, struct 
filter *filter)
                /* Check stack size. */
                if (!lua_checkstack(s->hlua->T, 1)) {
                        SEND_ERR(s->be, "Lua filter '%s': full stack.\n", 
conf->reg->name);
+                       RESET_SAFE_LJMP(s->hlua);
                        ret = 0;
                        goto end;
                }
-- 
2.33.0


Reply via email to