mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 08:24:42 +00:00
BUG/MEDIUM: http: fix the http-request capture parser
Due to the code being mostly inspired from the tcp-request parser, it does some crap because both don't work the same way. The "len" argument could be mismatched and then the length could be used uninitialized.
This commit is contained in:
parent
a9083d0722
commit
3986ac1860
@ -12163,7 +12163,7 @@ int parse_http_req_capture(const char **args, int *orig_arg, struct proxy *px, s
|
||||
struct sample_expr *expr;
|
||||
struct cap_hdr *hdr;
|
||||
int cur_arg;
|
||||
int len;
|
||||
int len = 0;
|
||||
|
||||
for (cur_arg = *orig_arg; cur_arg < *orig_arg + 3 && *args[cur_arg]; cur_arg++)
|
||||
if (strcmp(args[cur_arg], "if") == 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user