From: Willy Tarreau Date: Sun, 12 Jul 2009 07:21:30 +0000 (+0200) Subject: [BUG] default ACLs did not properly set the ->requires flag X-Git-Tag: v1.3.19~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7313a7e604a520597d4c3fdb27bd2c659de4b083;p=thirdparty%2Fhaproxy.git [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 a55b7dc52877ee81609db688f327e7e9586498f0) --- diff --git a/src/acl.c b/src/acl.c index ed41e91ed0..c3a01c408f 100644 --- 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)