BUG/MINOR: flt-trace: Support only one name option
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 16:01:08 +0000 (17:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Feb 2025 10:43:06 +0000 (11:43 +0100)
commite3e565a556ce960ac47f4495687a0bbda38ae160
treeeac71c6692e7fd89a36db19bfb88a95bac0c9f2b
parent8074bb26d1bbcb225100329ada2498112222e512
BUG/MINOR: flt-trace: Support only one name option

When a trace filter is defined, only one 'name' option is expected. But it
was not tested. Thus it was possible to set several names leading to a
memory leak.

It is now tested, and it is not allowed to redefine the trace filter name.

It was reported by Coverity in #2841: CID 1587768.

This patch could be backported to all stable versions.

(cherry picked from commit b20e2c96cfea06776db3200614f6d94441f15c2d)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/flt_trace.c