]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse-global: fix allowed args number for setenv
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 30 Sep 2024 13:29:47 +0000 (15:29 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 1 Oct 2024 08:35:09 +0000 (10:35 +0200)
commitdf68f7ec96c0c9d0e8f50643b96ec9062b7aa658
tree16f9d8cceae5cb9ca42ef9c8a20ddb9130b7b895
parent273d322b6fa8117423bbdc9b818002563d4fd3a3
BUG/MINOR: cfgparse-global: fix allowed args number for setenv

Keywords setenv and presetenv take 2 arguments: variable name and value.
So, the total number, that should be passed to alertif_too_many_args is 2
("setenv <name> <value>") instead of 3. For alertif_too_many_args the first
argument index is 0.

This should be backported in all stable versions.
src/cfgparse-global.c