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:
Tim Duesterhus 2019-02-26 17:09:50 +01:00 committed by Willy Tarreau
parent 6c1b667e57
commit c7f880ee3b

View File

@ -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 */