From a55b7dc52877ee81609db688f327e7e9586498f0 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 12 Jul 2009 09:21:30 +0200 Subject: [PATCH] [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. --- src/acl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/acl.c b/src/acl.c index a5f030238..b26a527f9 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)