]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: check: fix breakage of inverted tcp-check rules
authorWilly Tarreau <w@1wt.eu>
Tue, 12 May 2015 09:57:07 +0000 (11:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2015 12:45:02 +0000 (14:45 +0200)
commit6296a11ea416d6360226c27241713c0f6dc0a2ae
treeb55c4cfcab948eeca2edbd887486ebc027252dad
parentd60a9e5a390f31fec70f10de50f7055ad86798a5
BUG/MAJOR: check: fix breakage of inverted tcp-check rules

Recent commit 22b09d2 ("MINOR: include comment in tcpcheck error log")
accidently left a double-step to the next rule in case of an inverted
rule. The effect is that an inverted rule is necessarily skipped and
that we can crash if it was the last rule since we'd use as a rule the
head of the list, thus dereference random memory contents.

No backport is needed.
src/checks.c