diff --git a/src/proxy.c b/src/proxy.c index 194d4bdf6..3939beefc 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -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;