]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: config: Warn only if warnif_cond_conflicts report a conflict
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Mar 2026 17:16:52 +0000 (18:16 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Mar 2026 06:35:25 +0000 (07:35 +0100)
commit4e99cddde4164caada7e3aafaaba7a2495f3b6a9
treec1d79d2f13be0b9793ec233df62a0cebc8744425
parent0e36267aaccb88d03ef91c26e80418e916f154e4
BUG/MINOR: config: Warn only if warnif_cond_conflicts report a conflict

When warnif_cond_conflicts() is called, we must take care to emit a warning
only when a conflict is reported. We cannot rely on the err_code variable
because some warnings may have been already reported. We now rely on the
errmsg variable. If it contains something, a warning is emitted. It is good
enough becasue warnif_cond_conflicts() only reports warnings.

This patch should fix the issue #3305. It is a 3.4-dev specific issue. No
backport needed.
src/cfgparse-listen.c