mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-15 07:54:33 +00:00
BUG/MINOR: lua: In error case, the safe mode is not removed
Just forgot of reset the safe mode. This have not consequences the safe mode just set a pointer on fucntion which is called only and initialises a longjmp. Out of lua execution, this longjmp is never executed and the function is never called. This patch should be backported in 1.6 and 1.7
This commit is contained in:
parent
be7b1ce4c1
commit
0a97620c08
@ -857,6 +857,7 @@ int hlua_ctx_init(struct hlua *lua, struct task *task)
|
||||
lua->T = lua_newthread(gL.T);
|
||||
if (!lua->T) {
|
||||
lua->Tref = LUA_REFNIL;
|
||||
RESET_SAFE_LJMP(gL.T);
|
||||
return 0;
|
||||
}
|
||||
hlua_sethlua(lua);
|
||||
|
Loading…
Reference in New Issue
Block a user