]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: vars: Add vars_set_by_name_ifexist function
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 Oct 2016 10:05:37 +0000 (11:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Nov 2016 21:57:00 +0000 (22:57 +0100)
commit09c9df286b0343cd665328c95241a3f2d9b14f2f
tree9b6083ad37a5a56da1dac740fa67ffea21ec73c1
parentb71557a98b8c2036e47b33d8f5bb556530120c43
MINOR: vars: Add vars_set_by_name_ifexist function

This function, unsurprisingly, sets a variable value only if it already
exists. In other words, this function will succeed only if the variable was
found somewhere in the configuration during HAProxy startup.

It will be used by SPOE filter. So an agent will be able to set a value only for
existing variables. This prevents an agent to create a very large number of
unused variables to flood HAProxy and exhaust the memory reserved to variables..
include/proto/vars.h
src/vars.c