]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: compression: fix the output type of the compressor name
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Mar 2014 15:23:05 +0000 (16:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Mar 2014 15:23:05 +0000 (16:23 +0100)
commit4a4e6bca60ebac272242a972d0603b1fe6ccf3f2
treed7e9757eeb80050a31b211dd84048cb12ae0e625
parent0724903143fc3077a587732fdb4b76a12615a35f
BUG/MEDIUM: compression: fix the output type of the compressor name

smp_fetch_res_comp_algo() returns the name of the compression algorithm
in use. The output type is set to SMP_T_STR instead of SMP_T_CSTR, which
causes any transformation to be operated without a cast. Fortunately,
the current converters do not overwrite a zero-sized area, so the result
is an empty string. Fix this to have SMP_T_CSTR instead so that the cast
is always performed using a copy before any transformation is done.
src/compression.c