]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: proxy: calloc call inverted arguments
authorDavid CARLIER <devnexen@gmail.com>
Wed, 25 Nov 2015 15:27:36 +0000 (15:27 +0000)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Dec 2015 10:37:01 +0000 (11:37 +0100)
Nothing major but a human typo mistake.

src/proxy.c

index 194d4bdf600b234b08df53b1cade447addf6a5c0..3939beefcbddb14e69ab98b88728591ca8cbb45c 100644 (file)
@@ -414,7 +414,7 @@ static int proxy_parse_declare(char **args, int section, struct proxy *curpx,
                }
 
                /* register the capture. */
-               hdr = calloc(sizeof(struct cap_hdr), 1);
+               hdr = calloc(1, sizeof(struct cap_hdr));
                hdr->name = NULL; /* not a header capture */
                hdr->namelen = 0;
                hdr->len = len;