]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: applet: Fix applet_getword() to not return one extra byte
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Jul 2025 16:23:57 +0000 (18:23 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Jul 2025 10:13:41 +0000 (12:13 +0200)
commit574d0d8211ceb6a3ae3f150c2d2900c52c167ddc
tree3552acaaada6eebc42ee3d69f391914d0f2d5960
parent41a40680ce1c513d49a40d5e9f3c80a8a70a369f
BUG/MINOR: applet: Fix applet_getword() to not return one extra byte

applet_getword() function is returning one extra byte when a string is
returned because the "ret" variable is not reset before the loop on the
data. The patch also fixes applet_getline().

It is a 3.3-specific issue. No need to backport.
include/haproxy/applet.h