[BUG] default ACLs did not properly set the ->requires flag

This bug caused TCP proxies not to report incorrect use of some
aliases of HTTP ACLs.
(cherry picked from commit a55b7dc528)
This commit is contained in:
Willy Tarreau 2009-07-12 09:21:30 +02:00
parent d720927951
commit 7313a7e604

View file

@ -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)