mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-24 05:32:21 +00:00
BUG/MEDIUM: h2: Don't try to chunk data when using HTX.
When we're using HTX, we don't have to generate chunk header/trailers, and that ultimately leads to a crash when we try to access a buffer that contains just chunk trailers. This should not be backported.
This commit is contained in:
parent
1298948aa0
commit
50d660c545
@ -3101,7 +3101,7 @@ static int h2s_decode_headers(struct h2s *h2s)
|
||||
/* a payload is present */
|
||||
if (msgf & H2_MSGF_BODY_CL)
|
||||
h2s->flags |= H2_SF_DATA_CLEN;
|
||||
else if (!(msgf & H2_MSGF_BODY_TUNNEL))
|
||||
else if (!(msgf & H2_MSGF_BODY_TUNNEL) && !htx)
|
||||
h2s->flags |= H2_SF_DATA_CHNK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user