mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-15 20:03:33 -04:00
CLEANUP: http: Remove unreachable code in parse_http_req_capture
`len` has already been checked to be strictly positive a few lines above.
This unreachable code was introduced in 82bf70dff4.
This commit is contained in:
parent
6c1b667e57
commit
c7f880ee3b
1 changed files with 0 additions and 6 deletions
|
|
@ -375,12 +375,6 @@ static enum act_parse_ret parse_http_req_capture(const char **args, int *orig_ar
|
|||
}
|
||||
cur_arg++;
|
||||
|
||||
if (!len) {
|
||||
memprintf(err, "a positive 'len' argument is mandatory");
|
||||
free(expr);
|
||||
return ACT_RET_PRS_ERR;
|
||||
}
|
||||
|
||||
hdr = calloc(1, sizeof(*hdr));
|
||||
hdr->next = px->req_cap;
|
||||
hdr->name = NULL; /* not a header capture */
|
||||
|
|
|
|||
Loading…
Reference in a new issue