]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cfgparse-listen: fix the argument checked by "email-alert"
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)
commitee99b6444f95625daf3227c9a36919fa81c8fb2c
treed95c2af2c48c3e1986913ddae7b51c42217fbc11
parent0725c1a81bb252b4983b30848e85e56bd457c350
BUG/MINOR: cfgparse-listen: fix the argument checked by "email-alert"

The "from", "mailers", "myhostname" and "to" options of "email-alert"
each check that a value was passed, but they test args[1], which is the
option's own name instead fo args[2]. As a consequence an empty args[2]
was accepted. The same copy-paste mistake made the "level" option error
handling report the option name instead of the wrong value.

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