]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] default ACLs did not properly set the ->requires flag
authorWilly Tarreau <w@1wt.eu>
Sun, 12 Jul 2009 07:21:30 +0000 (09:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Jul 2009 18:20:54 +0000 (20:20 +0200)
This bug caused TCP proxies not to report incorrect use of some
aliases of HTTP ACLs.
(cherry picked from commit a55b7dc52877ee81609db688f327e7e9586498f0)

src/acl.c

index ed41e91ed07f3fc269aa4f89105423d850bf9210..c3a01c408f684a186357ddf0911b96685928533d 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -847,6 +847,7 @@ struct acl *find_acl_default(const char *acl_name, struct list *known_acl)
                goto out_free_name;
 
        cur_acl->name = name;
+       cur_acl->requires |= acl_expr->kw->requires;
        LIST_INIT(&cur_acl->expr);
        LIST_ADDQ(&cur_acl->expr, &acl_expr->list);
        if (known_acl)