]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Dec 2021 09:32:19 +0000 (10:32 +0100)
commitbb3e80e1814f63b76f100b342c217d08ca719688
tree7b104f1456c661a0597bba28cdaaff6d7e17b673
parent008386bec4bce4263a8968370f9e67cdf58a25f2
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.
src/vars.c