]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: acl: add implicit arguments to the resolve list
authorWilly Tarreau <w@1wt.eu>
Sun, 7 Apr 2013 19:20:44 +0000 (21:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Apr 2013 19:20:44 +0000 (21:20 +0200)
commitf75d008c45c6e0e989825d381222cd3d978b01c8
tree39a3f89032db6cbbe93426ffc28f16818a49586d
parent4fc90efed039f23d0d48cde895939d3e94410e54
BUG/MAJOR: acl: add implicit arguments to the resolve list

When an ACL keyword needs a mandatory argument and this argument is of
type proxy or table, it is allowed not to specify it so that current
proxy is used by default.

In order to achieve this, the ACL expression parser builds a dummy
argument from scratch and marks it unresolved.

However, since recent changes on the ACL and samples, an unresolved
argument needs to be added to the unresolved list. This specific code
did not do it, resulting in random data being used as a proxy pointer
if no argument was passed for a proxy name, possibly even causing a
crash.

A quick workaround consists explicitly naming proxies in ACLs.
src/acl.c