]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-htx: Fix error handling during parsing http replies
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Nov 2022 07:49:28 +0000 (08:49 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 16 Nov 2022 08:27:09 +0000 (09:27 +0100)
commit5a3d9a77e20a66796357627b1dd807a1b22603a5
tree1cdd71d3d19a91796a3fd9d9273a2f5d1cfd4c52
parent78c7a06e4fc1214b40845e6a61073e558fd6a02b
BUG/MINOR: http-htx: Fix error handling during parsing http replies

When an error is triggered during arguments parsing of an http reply (for
instance, from a "return" rule), while a log-format body was expected but
not evaluated yet, HAproxy crashes when the body log-format string is
released because it was not properly initialized.

The list used for the log-format string must be initialized earlier.

This patch should fix the issue #1925. It must be backported as far as 2.2.
src/http_htx.c