From: Olivier Houchard Date: Tue, 4 Dec 2018 16:41:58 +0000 (+0100) Subject: BUG/MEDIUM: h1: Correctly report used data with no len. X-Git-Tag: v1.9-dev10~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf42d5afa0a3d60809d9c0a61158c980b7884caf;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: h1: Correctly report used data with no len. When we have no content-length, and not in chunk mode, correctly report the used data. We really used "ret", and not "max". --- diff --git a/src/mux_h1.c b/src/mux_h1.c index cb4341f2a2..b0d5567000 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; } }