BUG/MINOR: http: Missing calloc return value check in parse_http_req_capture

A memory allocation failure happening in parse_http_req_capture while
processing a "len" keyword and allocating a cap_hdr structure would
have resulted in a crash. This function is only called during
configuration parsing.

It was raised in GitHub issue #1233.
It could be backported to all stable branches.

(cherry picked from commit a4bf8a059dd9c783c00680aedcf055faa4b5d784)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 737d8b5c7bbcc38152b5621715f6f34b94d6fc37)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 199087a69300956b722abc59372cb19cb1bacdcb)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 67b29ea1c4a19cf21dd017ac1e4423988df3c8fb)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed