mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MINOR: mux-h1: Be sure to update the count before adding EOM after trailers
Otherwise, an EOM may be added in a full buffer. This patch must be backported to 2.0.
This commit is contained in:
parent
6b32192cfb
commit
f1ef7f641d
@ -1476,7 +1476,7 @@ static size_t h1_process_input(struct h1c *h1c, struct buffer *buf, size_t count
|
|||||||
if (!ret)
|
if (!ret)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!h1_process_eom(h1s, h1m, htx, count))
|
else if (!h1_process_eom(h1s, h1m, htx, count))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (h1m->state == H1_MSG_DONE) {
|
else if (h1m->state == H1_MSG_DONE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user