]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: comp: DEFAULT_MAXZLIBMEM was expressed in bytes and not megabytes
authorWilly Tarreau <w@1wt.eu>
Mon, 3 Dec 2012 11:10:45 +0000 (12:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Dec 2012 13:22:12 +0000 (14:22 +0100)
The value is stored in bytes but was not multiplied. It would only affect
packagers.

src/haproxy.c

index b5f9f39d34364d2d70840b6bd797f22e7734780a..b62d261ff7dc7399664374a788a692f208025090 100644 (file)
@@ -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