]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cfgparse-global: add missing gotos to error label in max-spread-checks
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2026 14:37:58 +0000 (16:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:22:33 +0000 (09:22 +0200)
commit6a770228976b5463dbbbc70a39f784a02864ef54
tree31824a479c55c35665358a3fa4d899dca93ba581
parentda16d8531fed8d3a55b43462a6fb5f8c66bc9689
BUG/MINOR: cfgparse-global: add missing gotos to error label in max-spread-checks

The three error paths of the parse_time_err() call in the
"max-spread-checks" keyword only set the error code without leaving the
block, so that global.max_spread_checks was assigned an uninitialized
value right after the error was reported. No impact but clearly what
could report a build warning or a report from a static analyser. Let's
just add the missing gotos like everywhere else.

This may be backported to all supported versions.
src/cfgparse-global.c