BUG/MINOR: spoe: Register the variable to set when an error occurred
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Mar 2018 13:12:17 +0000 (14:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Apr 2018 13:13:53 +0000 (15:13 +0200)
commitb7426d1562720b2bdd6eb4a94a7b536e123ce0f9
treea78f1874e4393502724aa65ff9b711c8d9bc8d2a
parentac580608d712e1e8c351d84dfda6e5ac773812df
BUG/MINOR: spoe: Register the variable to set when an error occurred

Variables referenced in HAProxy's configuration file are registered during the
configuration parsing (during parsing of "var", "set-var" or "unset-var"
keywords). For the SPOE, you can use "register-var-names" directive to
explicitly register variable names. All unknown variables will be rejected
(unless you set "force-set-var" option). But, the variable set when an error
occurred (when "set-on-error" option is defined) should also be regiestered by
default. This is done with this patch.
src/flt_spoe.c