From 99d48c3aecc93a2b1db78c3f3e1fd83134911258 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 20 May 2026 15:23:15 +0200 Subject: [PATCH] BUG/MINOR: htx: Fix value of HTX_XFER_HDRS_ONLY flag HTX_XFER_* flags must be declared as a bitfield. However, value of HTX_XFER_HDRS_ONLY was set of 0x03 while it should be 0x04. So let's fix it. This patch must be backported where the htx_xfer() function was backported (5ead611cc "MEDIUM: htx: Add htx_xfer function to replace htx_xfer_blks"). --- include/haproxy/htx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/htx.h b/include/haproxy/htx.h index 972bdaa44..3e61fb1fd 100644 --- a/include/haproxy/htx.h +++ b/include/haproxy/htx.h @@ -65,7 +65,7 @@ struct buffer *htx_copy_to_large_buffer(struct buffer *dst, struct buffer *src); #define HTX_XFER_DEFAULT 0x00000000 /* Default XFER: no partial xfer / remove blocks from source */ #define HTX_XFER_KEEP_SRC_BLKS 0x00000001 /* Don't remove xfer blocks from source messages during xfer */ #define HTX_XFER_PARTIAL_HDRS_COPY 0x00000002 /* Allow partial copy of headers and trailers part */ -#define HTX_XFER_HDRS_ONLY 0x00000003 /* Only Transfer header blocks (start-line, header and EOH) */ +#define HTX_XFER_HDRS_ONLY 0x00000004 /* Only Transfer header blocks (start-line, header and EOH) */ size_t htx_xfer(struct htx *dst, struct htx *src, size_t count, unsigned int flags); /* Functions and macros to get parts of the start-line or length of these