]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: tcp: fix error reporting for TCP rules
authorWilly Tarreau <w@1wt.eu>
Wed, 10 Apr 2013 14:31:11 +0000 (16:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2013 15:24:53 +0000 (17:24 +0200)
tcp-request swapped two output words in the error message, making it meaningless.

src/proto_tcp.c

index 781b24a740bdcc1c08ffe2f9562ed8d38d0f2ed5..7c03798c1013bf748f647cb3a5059505bf1fdff8 100644 (file)
@@ -1429,7 +1429,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
                else
                        memprintf(err,
                                  "'%s' expects 'inspect-delay', 'connection', or 'content' in %s '%s' (got '%s')",
-                                 args[0], args[1], proxy_type_str(curpx), curpx->id);
+                                 args[0], proxy_type_str(curpx), curpx->id, args[1]);
                goto error;
        }