]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h1: Get the h1m state when restarting the headers parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Jan 2019 15:06:48 +0000 (16:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Jan 2019 15:23:03 +0000 (16:23 +0100)
commit68b1bbd767c1d863bbbe98e6255a2511fe99e3aa
tree3d341f2b57f0d7e1bde64ff2c7307bf0dd263fba
parentf376a31562166e52b7810f28ccea6f80d83f1a40
BUG/MEDIUM: h1: Get the h1m state when restarting the headers parsing

Since the commit 0f8fb6b7f ("MINOR: h1: make the H1 headers block parser able to
parse headers only"), when headers are not received in one time, a parsing error
is returned because the local state in the function h1_headers_to_hdr_list() was
not initialized with the previous one (in fact, it was not initialized at all).

So now, we start the parsing of headers with the state H1_MSG_HDR_FIRST when the
flag H1_MF_HDRS_ONLY is set. Otherwise, we always get it from the h1m.

This patch must be backported to 1.9.
src/h1.c