BUG/MEDIUM: hlua: Fix getline() for TCP applets to work with applet's buffers
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 May 2025 05:46:44 +0000 (07:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 May 2025 12:15:32 +0000 (14:15 +0200)
commit08c48cf43598a489f74d4a128f672545d1577d30
tree7bfdaa0b47095f054f97aef4135bb0ff326fe2f1
parentecc8126ef97836044b1bc962fd4b9c91e89c353f
BUG/MEDIUM: hlua: Fix getline() for TCP applets to work with applet's buffers

The commit e5e36ce09 ("BUG/MEDIUM: hlua/cli: Fix lua CLI commands to work
with applet's buffers") fixed the TCP applets API to work with applets using
its own buffers. Howver the getline() function was not updated. It could be
an issue for anyone registering a CLI commands reading lines.

This patch should be backported as far as 3.0.

(cherry picked from commit c0ecef71d7ceaf404bc18241bdb878a4e72033b4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c