commit | 09fdf4b1122670a0ecb86f100aa84353453e7474 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Nov 09 16:14:16 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 09 17:19:20 2017 +0100 |
tree | e989d3730de7e3125d5d532e7c2c80504c69f8e6 | |
parent | c5a9d5bf237bbc77cf90634a2a7e880478c696d6 [diff] |
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.