diff --git a/src/mux_h1.c b/src/mux_h1.c index cb4341f2a..b0d556700 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1103,8 +1103,8 @@ static size_t h1_process_data(struct h1s *h1s, struct h1m *h1m, struct htx *htx, if (!htx_add_data(htx, ist2(b_peek(buf, *ofs), ret))) goto end; - *ofs += max; - total = max; + *ofs += ret; + total = ret; } }