MINOR: filters: Forward data only if the last filter forwards something
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Feb 2020 15:40:33 +0000 (16:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Feb 2020 10:21:53 +0000 (11:21 +0100)
commit93a2d142888f9a5ec1ca271f0fe6a2acc17b0d5d
tree33f1acddb7fe1bcad14e053773569685231cff2e
parent3adcf7ec66de85a34363f7f5b48a4553acd6d412
MINOR: filters: Forward data only if the last filter forwards something

In flt_tcp_payload() and flt_http_payload(), if the last filter does not
forwarding anything, nothing is forwarded, not even the already filtered
data. For now, this patch is useless because the last filter is always sync with
the stream's offset. But it will be mandatory for a bugfix.

(cherry picked from commit 71179a3ea97ea46b28788dfab557c675ec3f3a1e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/filters.c