]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: filters: Use filter offset to decude the amount of forwarded data
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 24 Feb 2020 15:20:09 +0000 (16:20 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 13:12:59 +0000 (14:12 +0100)
commitc50ee0b3b4001300f47f77bbdc38b2991b76d663
tree2b59affc04c5dd2cb9fe5bdc0c5f99240f631138
parent24598a499fec99994c1c0e61bca8208333100e86
BUG/MINOR: filters: Use filter offset to decude the amount of forwarded data

When the tcp or http payload is filtered, it is important to use the filter
offset to decude the amount of forwarded data because this offset may change
during the call to the callback function. So we should not rely on a local
variable defined before this call.

For now, existing HAproxy filters don't change this offset, so this bug may only
affect external filters.

This patch must be forwarded as far as 1.9.
src/filters.c