BUG/MINOR: config: do not accept more track-sc than configured
authorWilly Tarreau <w@1wt.eu>
Fri, 17 Oct 2014 09:53:05 +0000 (11:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Oct 2014 09:53:05 +0000 (11:53 +0200)
commite1cfc1f2b469fb86b9826ff12cdd6a24a1f3ded0
tree0a3c9a45e7fa3b654799ba47e1ea1fe13c61031c
parent91a9f1a2e1421a376a4b63f9342addd59cb2b244
BUG/MINOR: config: do not accept more track-sc than configured

MAX_SESS_STKCTR allows one to define the number of stick counters that can
be used in parallel in track-sc* rules. The naming of this macro creates
some confusion because the value there is sometimes used as a max instead
of a count, and the config parser accepts values from 0 to MAX_SESS_STKCTR
and the processing ignores anything tracked on the last one. This means
that by default, track-sc3 is allowed and ignored.

This fix must be backported to 1.5 where the problem there only affects
TCP rules.
src/proto_http.c
src/proto_tcp.c