mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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.
This commit is contained in:
parent
0bf6fa5e40
commit
03d85538b3
1 changed files with 1 additions and 1 deletions
|
|
@ -923,7 +923,7 @@ smp_fetch_res_comp_algo(const struct arg *args, struct sample *smp,
|
|||
struct filter *filter;
|
||||
struct comp_state *st;
|
||||
|
||||
if (!(txn || !(txn->rsp.flags & HTTP_MSGF_COMPRESSING)))
|
||||
if (!txn || !(txn->rsp.flags & HTTP_MSGF_COMPRESSING))
|
||||
return 0;
|
||||
|
||||
list_for_each_entry(filter, &strm_flt(smp->strm)->filters, list) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue