]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcp-rules: completely free incorrect TCP rules on error
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2022 19:26:54 +0000 (20:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2022 19:26:54 +0000 (20:26 +0100)
commit388c0f2a6385060ee7f2d93863efddc9f0aba284
tree0f78eae7eb874491382699ae813f7a610edfe69c
parent6a783e499c8d5a7a3a2cd8eccd8faf4c8828a8f3
BUG/MINOR: tcp-rules: completely free incorrect TCP rules on error

When a tcp-request or tcp-response rule fails to parse, we currently
free only the rule without its contents, which makes ASAN complain.
Now that we have a new function for this, let's completely free the
rule. Reg-tests are now completely OK with ASAN. This relies on this
commit:

  MINOR: actions: add new function free_act_rule() to free a single rule

It's probably not needed to backport this since we're on the exit path
anyway.
src/tcp_rules.c