BUG/MINOR: acl: implicit arguments of ACL keywords were not properly resolved
William Lallemand reported a bug which happens when an ACL keyword using an implicit argument (eg: a proxy name) is used : the keyword is not properly set in the arglist field, resulting in an error about the previous keyword being returned, or "(null)" if the faulty ACL appears first. The bug only affects error reporting and is 1.5-specific, so no backport is nedeed.
This commit is contained in:
parent
472b1ee115
commit
9ca6936c80
@ -1134,6 +1134,10 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list *
|
||||
expr->args[0].data.str.str = strdup("");
|
||||
expr->args[0].data.str.size = 1;
|
||||
expr->args[0].data.str.len = 0;
|
||||
|
||||
al->ctx = ARGC_ACL;
|
||||
al->kw = expr->kw;
|
||||
al->conv = NULL;
|
||||
arg_list_add(al, &expr->args[0], 0);
|
||||
|
||||
expr->args[1].type = ARGT_STOP;
|
||||
|
Loading…
x
Reference in New Issue
Block a user