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.4-dev1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a55b7dc52877ee81609db688f327e7e9586498f0;p=thirdparty%2Fhaproxy.git [BUG] default ACLs did not properly set the ->requires flag This bug caused session initialization not to always allocate the hdr_idx struct for default ACLs involving HTTP content. --- diff --git a/src/acl.c b/src/acl.c index a5f030238c..b26a527f9f 100644 --- a/src/acl.c +++ b/src/acl.c @@ -848,6 +848,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)