From: Christopher Faulet Date: Mon, 20 May 2019 07:32:25 +0000 (+0200) Subject: BUG/MINOR: htx: Remove a forgotten while loop in htx_defrag() X-Git-Tag: v2.0-dev5~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fd4c031c4e2f9177d139e3dad46a1b157e6dda;p=thirdparty%2Fhaproxy.git BUG/MINOR: htx: Remove a forgotten while loop in htx_defrag() Fortunately, this loop does nothing. Otherwise it would have led to an infinite loop. It was probably forgotten during a refactoring, in the early stage of the HTX. This patch must be backported to 1.9. --- diff --git a/src/htx.c b/src/htx.c index 525f7ef695..9deddb15c8 100644 --- a/src/htx.c +++ b/src/htx.c @@ -64,7 +64,7 @@ struct htx_blk *htx_defrag(struct htx *htx, struct htx_blk *blk) new++; addr += blksz; - } while (new < htx->used); + } htx->sl_off = sl_off; htx->wrap = htx->used;