From 516dfe16ff9c01c470b3b1fd9bb5ddfeb1163ef8 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 10 Jul 2025 14:10:41 +0200 Subject: [PATCH] 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. --- src/h1_htx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h1_htx.c b/src/h1_htx.c index 142d99199..83e241e53 100644 --- a/src/h1_htx.c +++ b/src/h1_htx.c @@ -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)) -- 2.47.2