]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: compression: fix build error with DEFAULT_MAXZLIBMEM
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 09:24:45 +0000 (10:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 09:27:51 +0000 (10:27 +0100)
commit3bfcd10218f96acfdbbf17a898df07703b73e06d
tree71f4786cdb8dc01387d1f64cfecfa1856b62228b
parent742e0f9f1f6e747372e2de3dc5cd86f5414eb7c6
BUILD: compression: fix build error with DEFAULT_MAXZLIBMEM

The tune.maxzlibmem setting was moved with commit 368780334 ("MEDIUM:
compression: move the zlib-specific stuff from global.h to compression.c")
but the preset value using DEFAULT_MAXZLIBMEM was incorrectly moved :
  - the field is in "global" and not "global.tune"
  - the trailing comma instead of semi-colon will make it either zero
    (threads enabled), break (threads enabled with debugging), or cast
    the memprintf's return pointer to int (threads disabled)

It simply proves that nobody ever used DEFAULT_MAXZLIBMEM since 1.8!

This needs to be backported to 1.8.
src/compression.c