From: Willy Tarreau Date: Fri, 12 Apr 2013 06:26:32 +0000 (+0200) Subject: MINOR: tcp: report the erroneous word in tcp-request track* X-Git-Tag: v1.5-dev19~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33c60dece549953e5e57969b4c8f2cd2d4ea2b3c;p=thirdparty%2Fhaproxy.git MINOR: tcp: report the erroneous word in tcp-request track* We used to report the word after the fetch. --- diff --git a/src/proto_tcp.c b/src/proto_tcp.c index 7c03798c10..97bc33bd6e 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -1124,7 +1124,7 @@ static int tcp_parse_request_rule(char **args, int arg, int section_type, if (!(expr->fetch->val & where)) { memprintf(err, "'%s %s %s' : fetch method '%s' extracts information from '%s', none of which is available here", - args[0], args[1], args[kw], args[arg], sample_src_names(expr->fetch->use)); + args[0], args[1], args[kw], args[arg-1], sample_src_names(expr->fetch->use)); free(expr); return -1; }