]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: acl: remove obsolete test in parse_acl_expr()
authorWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:04:27 +0000 (18:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:04:27 +0000 (18:04 +0100)
The ACL keyword returned by find_acl_kw() is checked for having a
valid ->parse() function. This dates back 2007 when ACLs were reworked
in order to differenciate old and new keywords. This check is
inappropriate and confusing since all keywords have a parser now.

src/acl.c

index b04c9dfa99def959ea5bdf4453ca074fa170b595..abfd04cc2a3941915740f918b9f266ba3b2a4a81 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -156,7 +156,7 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list *
        al->conv = NULL;
 
        aclkw = find_acl_kw(args[0]);
-       if (aclkw && aclkw->parse) {
+       if (aclkw) {
                /* OK we have a real ACL keyword */
 
                /* build new sample expression for this ACL */