]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: pattern: Rely on the sample type to copy it in pattern_exec_match
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Nov 2017 15:14:16 +0000 (16:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Nov 2017 16:19:20 +0000 (17:19 +0100)
commit09fdf4b1122670a0ecb86f100aa84353453e7474
treee989d3730de7e3125d5d532e7c2c80504c69f8e6
parentc5a9d5bf237bbc77cf90634a2a7e880478c696d6
BUG/MINOR: pattern: Rely on the sample type to copy it in pattern_exec_match

To be thread safe, the function pattern_exec_match copy data (the pattern and
the inner sample) in thread-local variables. But when the sample is duplicated,
we must check its type and not the pattern one.

This is specific to threads, no backport is needed.
src/pattern.c