From: Willy Tarreau Date: Mon, 3 Dec 2012 11:10:45 +0000 (+0100) Subject: BUG/MEDIUM: comp: DEFAULT_MAXZLIBMEM was expressed in bytes and not megabytes X-Git-Tag: v1.5-dev15~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a940376442d2d30b0b9d438c59fee4b896ab11d;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: comp: DEFAULT_MAXZLIBMEM was expressed in bytes and not megabytes The value is stored in bytes but was not multiplied. It would only affect packagers. --- diff --git a/src/haproxy.c b/src/haproxy.c index b5f9f39d34..b62d261ff7 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -121,7 +121,7 @@ struct global global = { .req_count = 0, .logsrvs = LIST_HEAD_INIT(global.logsrvs), #ifdef DEFAULT_MAXZLIBMEM - .maxzlibmem = DEFAULT_MAXZLIBMEM, + .maxzlibmem = DEFAULT_MAXZLIBMEM * 1024U * 1024U, #else .maxzlibmem = 0, #endif