]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: rules: Initialize the list element when allocating a new rule
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Mar 2022 06:55:34 +0000 (07:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Mar 2022 06:55:37 +0000 (07:55 +0100)
commit9075dbdd84efa4c5066c5cc8c3f0c4945c3ee832
treec7300a736756b62caaf6cc9bb0bfc560a95b3650
parent15a4733d5d6af9540449b3e2981ab196b41317ee
BUG/MINOR: rules: Initialize the list element when allocating a new rule

dd7e6c6dc ("BUG/MINOR: http-rules: completely free incorrect TCP rules on
error") and 388c0f2a6 ("BUG/MINOR: tcp-rules: completely free incorrect TCP
rules on error") introduced a regression because the list element of a new
rule is not intialized. Thus HAProxy crashes when an incorrect rule is
released.

This patch must be backported if above commits are backported. Note that
new_act_rule() only exists since the 2.5. It relies on the commit d535f807b
("MINOR: rules: add a new function new_act_rule() to allocate act_rules").
src/action.c