]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: sample: simplify and fix the argument parsing
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Dec 2013 23:40:11 +0000 (00:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Dec 2013 00:33:33 +0000 (01:33 +0100)
commit689a1df0a13a9da79169dd20288819ff9a706c31
treef613e96cba74bd69c49da1abb66f58b4726fd795
parentb111d42d454a6dc170d42ad462a8d391c6dcef81
BUG/MEDIUM: sample: simplify and fix the argument parsing

Some errors may be reported about missing mandatory arguments when some
sample fetch arguments are marked as mandatory and implicit (eg: proxy
names such as in table_cnt or be_conn).

In practice the argument parser already handles all the situations very
well, it's just that the sample fetch parser want to go beyond its role
and starts some controls that it should not do. Simply removing these
useless controls lets make_arg_list() create the correct argument types
when such types are encountered.

This regression was introduced by the recent use of sample_parse_expr()
in ACLs which makes use of its own argument parser, while previously
the arguments were parsed in the ACL function itself. No backport is
needed.
src/sample.c