]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tcp: report the erroneous word in tcp-request track*
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Apr 2013 06:26:32 +0000 (08:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Apr 2013 06:26:32 +0000 (08:26 +0200)
We used to report the word after the fetch.

src/proto_tcp.c

index 7c03798c1013bf748f647cb3a5059505bf1fdff8..97bc33bd6e8e03bf230011428bb70287bc7f28d8 100644 (file)
@@ -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;
                }