]> 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>
Sun, 12 Jul 2009 07:21:30 +0000 (09:21 +0200)
This bug caused session initialization not to always allocate
the hdr_idx struct for default ACLs involving HTTP content.

src/acl.c

index a5f030238c2f4125db2426b3418970bb0c91dbdc..b26a527f9f8979ce10293a0e99ac92e2f5a1a366 100644 (file)
--- 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)