From: Christopher Faulet Date: Mon, 1 Jun 2026 13:16:35 +0000 (+0200) Subject: BUG/MINOR: applet: Commit changes into input buffer after sending HTX data X-Git-Tag: v3.4.0~29 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b8543c54d45e769d7aea0397cbc0124cd6b2420d;p=thirdparty%2Fhaproxy.git BUG/MINOR: applet: Commit changes into input buffer after sending HTX data After sending HTX data to an applet, htx_to_buf() must be called on the applet buffer to commit changes (and possibly to reset the buffer if it is empty). This was performed on the output buffer while it should in fact be performed on the input buffer. So let's fix it. This patch must be backported as far as 3.0. --- diff --git a/src/applet.c b/src/applet.c index d93720ec9..6e5188404 100644 --- a/src/applet.c +++ b/src/applet.c @@ -611,7 +611,7 @@ size_t appctx_htx_snd_buf(struct appctx *appctx, struct buffer *buf, size_t coun appctx_htx->flags |= (buf_htx->flags & HTX_FL_EOM); } - htx_to_buf(appctx_htx, &appctx->outbuf); + htx_to_buf(appctx_htx, &appctx->inbuf); htx_to_buf(buf_htx, buf); ret -= buf_htx->data; end: