mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02: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
@ -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 New Issue
Block a user