]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: Don't forget the return statement after a hlua_yieldk()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Jun 2025 19:39:19 +0000 (21:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 Jun 2025 06:46:36 +0000 (08:46 +0200)
commit8c573deb9f95ae3171440d682b08abccda234e6d
treec5ac617491ca4d37f542d273c9a6c2b8ccef67c0
parentbf6e576cfd3b91d5ac013c7f6769517bba8d3f8f
BUG/MINOR: hlua: Don't forget the return statement after a hlua_yieldk()

In hlua_applet_tcp_getline_yield(), the function may yield if there is no
data available. However we must take care to add a return statement just
after the call to hlua_yieldk(). I don't know the details of the LUA API,
but at least, this return statement fix a build error about uninitialized
variables that may be used.

It is a 3.3-specific issue. No backport needed.
src/hlua.c