]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: tcp-check: don't rely on random memory contents
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Dec 2014 10:52:28 +0000 (11:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Dec 2014 10:52:28 +0000 (11:52 +0100)
commitd2a49592faca66381303d8e0d63665ae44046def
tree3cc48d853a5d003035410cdb7299e45ca7d45511
parente7b9ed33ee7306c1f9fd276bb5e683befab06e82
BUG/MEDIUM: tcp-check: don't rely on random memory contents

If "option tcp-check" is used and no "tcp-check" rule is specified, we
only look at rule->action which dereferences the proxy's memory and which
can randomly match TCPCHK_ACT_CONNECT or whatever else, causing a check
to fail. This bug is the result of an incorrect fix attempted in commit
f621bea ("BUG/MINOR: tcpcheck connect wrong behavior").

This fix must be backported into 1.5.
src/checks.c