BUG/MINOR: vars: fix set-var/unset-var exclusivity in the keyword parser
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Sep 2021 16:46:22 +0000 (18:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Sep 2021 16:46:22 +0000 (18:46 +0200)
commit2819210a8328ff60505e499acf9f8bc323bec840
treeb42225d38baf24933a6eff221e8ad13835255607
parent30ee2965b66f20a2649323ca36029bf2440e34b9
BUG/MINOR: vars: fix set-var/unset-var exclusivity in the keyword parser

The parser checks first for "set-var" then "unset-var" from the updated
offset instead of testing it only when the other one fails, so it
validates this rule as "unset-var":

    http-request set-varunset-var(proc.a)

This should be backported everywhere relevant, though it's mostly harmless
as it's unlikely that some users are purposely writing this in their conf!
src/vars.c