From: Christopher Faulet Date: Thu, 10 Jul 2025 12:10:41 +0000 (+0200) Subject: BUG/MINOR: h1-htx: Don't forget to init flags in h1_format_htx_msg function X-Git-Tag: v3.3-dev3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=516dfe16ff9c01c470b3b1fd9bb5ddfeb1163ef8;p=thirdparty%2Fhaproxy.git 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. --- 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))