]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: checks: fix double usage of cur / current_step in tcp-checks
authorWilly Tarreau <w@1wt.eu>
Wed, 13 May 2015 09:23:01 +0000 (11:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 May 2015 10:02:09 +0000 (12:02 +0200)
commitce8c42a37a44a1e0cb94e81abb7cc2baf3d0ef80
treec304169ac5157050e659410612de44891cba378e
parentb2f07451e5dc84e699f5485d1a959515d855d51b
CLEANUP: checks: fix double usage of cur / current_step in tcp-checks

This cleanup is a preliminary requirement to the upcoming fixes for
the bug that affect tcp-check's improper use of lists. It will have
to be backported to 1.5 though it will not easily apply.

There are two variables pointing to the current rule within the loop,
and either one or the other is used depending on the code blocks,
making it much harder to apply checks to fix the list walking bug.
So first get rid of "cur" and only focus on current_step.
src/checks.c