mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-05 04:53:23 +02:00
BUG/MEDIUM: mux-h1: don't try to process an empty input buffer
h1_process_input() may occasionally be called with an empty input buffer, and the code behind cannot deal with that, let's check the condition at the beginning. No backport is needed.
This commit is contained in:
@@ -1278,6 +1278,9 @@ static size_t h1_process_input(struct h1c *h1c, struct buffer *buf, int flags)
|
||||
if (count > max)
|
||||
count = max;
|
||||
|
||||
if (!count)
|
||||
goto end;
|
||||
|
||||
if (!conn_is_back(h1c->conn)) {
|
||||
h1m = &h1s->req;
|
||||
errflag = H1S_F_REQ_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user