mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-30 22:41:55 +01:00
BUG/MEDIUM: lua: reset flags before resuming execution
This patch reset the flags except th run flag before resuming the Lua execution. If this initialisation is not done, some flags can remain at the end of the Lua execution and give bad informations.
This commit is contained in:
parent
3e3a608f19
commit
1bfc09b4cf
@ -685,6 +685,9 @@ resume_execution:
|
||||
*/
|
||||
lua_sethook(lua->T, hlua_hook, LUA_MASKCOUNT, hlua_nb_instruction);
|
||||
|
||||
/* Remove all flags except the running flags. */
|
||||
lua->flags = HLUA_RUN;
|
||||
|
||||
/* Call the function. */
|
||||
ret = lua_resume(lua->T, gL.T, lua->nargs);
|
||||
switch (ret) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user