BUG/MINOR: h1-htx: Don't forget to init flags in h1_format_htx_msg function

The regression was introduced by commit 187ae28 ("MINOR: h1-htx: Add
function to format an HTX message in its H1 representation"). We must be
sure the flags variable must be initialized in h1_format_htx_msg() function.

This patch must be backported with the commit above.
This commit is contained in:
Christopher Faulet 2025-07-10 14:10:41 +02:00
parent d252ec2beb
commit 516dfe16ff

View File

@ -1127,7 +1127,7 @@ int h1_format_htx_msg(const struct htx *htx, struct buffer *outbuf)
const struct htx_blk *blk;
struct ist n, v;
enum htx_blk_type type;
uint32_t flags;
uint32_t flags = 0;
int has_eod = 0;
if (b_data(outbuf))