BUG/MINOR: hlua/init: coroutine may not resume itself

It's not supported to call lua_resume with <L> and <from> designating
the same lua coroutine. It didn't cause visible bugs so far because
Lua 5.3 used to be more permissive about this, and moreover, yielding
is not involved during the hlua init state.

But this is wrong usage, and the doc clearly specifies that the <from>
argument can be NULL when there is no such coroutine, which is the case
here.

This should be backported in every stable versions.

(cherry picked from commit 1115fc348ec4a7d25ecc316ccc41e2f00c95259c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 3ddcd1b089791ca69969af14df8764c92f80c795)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 43a9a40d64108e4f6e38acbec5b4f9eb947115dd)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6e2bf49eff73ab9bf324a23d619458c6f367a8c7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed