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 13:15:59 +0000 (15:15 +0200)
commit02854140dbe24c5cafc11f496fd2d7c4e25124ff
treeade2124c92e157dd12f859f274f18b1a996401a6
parent272c1775a03b4bba3ac5d264f9024b563e21842e
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>
(cherry picked from commit 08c48cf43598a489f74d4a128f672545d1577d30)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c