]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: compression: Fix check on txn in smp_fetch_res_comp_algo
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Sep 2017 08:14:43 +0000 (10:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 16:42:23 +0000 (18:42 +0200)
commit03d85538b35ac63d7126cbd5ad06c64513aba3a7
tree09625331e7ffca1bb0f3e60b13edf6c2aa222a2c
parent0bf6fa5e40f75456880ec5e235c6d2c8264b2df5
BUG/MEDIUM: compression: Fix check on txn in smp_fetch_res_comp_algo

The check was totally messed up. In the worse case, it led to a crash, when
res.comp_algo sample fetch was retrieved on uncompressed response (with the
compression enabled).

This patch must be backported in 1.7.
src/flt_http_comp.c