BUG/MEDIUM lua: Add missing call to RESET_SAFE_LJMP in hlua_filter_new()

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

Introduced in 69c581a092, which is 2.5+.
No backport required.
This commit is contained in:
Tim Duesterhus 2021-09-11 23:17:25 +02:00 committed by Willy Tarreau
parent e956c9cdac
commit 2281738256
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}