From b8fd4c031c4e2f9177d139e3dad46a1b157e6dda Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 20 May 2019 09:32:25 +0200 Subject: [PATCH] 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. --- src/htx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htx.c b/src/htx.c index 525f7ef69..9deddb15c 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;