BUG/MINOR: vars: Fix the set-var and unset-var converters
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 26 Nov 2021 17:08:39 +0000 (18:08 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Dec 2021 14:10:45 +0000 (15:10 +0100)
commit699cccb777e9b9094f8b1828061eeb7863aa3db0
treefaf245c43f94367a58ab6809b7e3d6ef4a1cff73
parent98edfac7315cd443f0ad3df66491d6a941c1a899
BUG/MINOR: vars: Fix the set-var and unset-var converters

In commit 3a4bedccc6 the variable logic was changed. Instead of
accessing variables by their name during runtime, the variable tables
are now indexed by a hash of the name. But the set-var and unset-var
converters try to access the correct variable by calculating a hash on
the sample instead of the already calculated variable hash.

It should be backported to 2.5.

(cherry picked from commit bb3e80e1814f63b76f100b342c217d08ca719688)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/vars.c