]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: htx: Don't count delta twice when block value is replaced
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 Apr 2026 16:58:35 +0000 (18:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Apr 2026 12:07:21 +0000 (14:07 +0200)
commit7270bfcff528c06f693bad24a1eee8e2cf328fb2
treee8d531f51ab5cff101bc46b902d003d741e50a44
parentd899f230174d768dce0b482d7cfd6522d79c8634
BUG/MEDIUM: htx: Don't count delta twice when block value is replaced

A regression was introduced by the commit a8887e55a ("BUG/MEDIUM: htx: Fix
function used to change part of a block value when defrag").

When a block value was replaced and a defragmentation was performed, the
delta between the old value and the new one was counted twice. htx_defrag()
already is responsible to set the new size for the HTX message. So it must
not be performed in htx_replace_blk_value().

This patch must be backported with the commit above. So theorically to all
stable versions.
src/htx.c