mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 04:00:46 +00:00
BUG/MINOR: ACL implicit arguments must be created with unresolved flag
Commit 496aa0 fixed a design issue by adding an "unresolved" flag to the ACL arguments. Unfortunately this unresolved flag was not set when building the fake argument some ACL need when using an implicit argument pointing to the local proxy. Special thanks to Michael Kearey who reported the issue with a reproducer and the commit introducing the bug.
This commit is contained in:
parent
f8c95d2a25
commit
e3a461118c
@ -1422,6 +1422,7 @@ struct acl_expr *parse_acl_expr(const char **args, char **err)
|
||||
*/
|
||||
expr->args = calloc(2, sizeof(*expr->args));
|
||||
expr->args[0].type = type;
|
||||
expr->args[0].unresolved = 1;
|
||||
expr->args[0].data.str.str = strdup("");
|
||||
expr->args[0].data.str.len = 1;
|
||||
expr->args[0].data.str.len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user