mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
[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.
This commit is contained in:
parent
bedb9bad67
commit
a55b7dc528
@ -848,6 +848,7 @@ struct acl *find_acl_default(const char *acl_name, struct list *known_acl)
|
|||||||
goto out_free_name;
|
goto out_free_name;
|
||||||
|
|
||||||
cur_acl->name = name;
|
cur_acl->name = name;
|
||||||
|
cur_acl->requires |= acl_expr->kw->requires;
|
||||||
LIST_INIT(&cur_acl->expr);
|
LIST_INIT(&cur_acl->expr);
|
||||||
LIST_ADDQ(&cur_acl->expr, &acl_expr->list);
|
LIST_ADDQ(&cur_acl->expr, &acl_expr->list);
|
||||||
if (known_acl)
|
if (known_acl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user