]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 16:01:15 +0000 (17:01 +0100)
commitb20e2c96cfea06776db3200614f6d94441f15c2d
treea54f4fe74f7394db667d55829453608d28b82b1b
parenta7f513af9187444680e3e054e0a13f818aed3307
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.
src/flt_trace.c