From: Willy Tarreau Date: Tue, 22 Oct 2013 17:10:06 +0000 (+0200) Subject: BUG/MINOR: acl: implicit arguments of ACL keywords were not properly resolved X-Git-Tag: v1.5-dev20~260 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ca6936c80cf02b37d6bcf2f58ef2bfdac0d52b2;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/acl.c b/src/acl.c index 7dc25fb9b4..89bfdf5a0b 100644 --- a/src/acl.c +++ b/src/acl.c @@ -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;