]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: compression: fix -vv output without zlib/slz
authorLukas Tribus <luky-37@hotmail.com>
Wed, 11 Jan 2017 14:24:35 +0000 (14:24 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Jan 2017 15:11:11 +0000 (16:11 +0100)
When haproxy is compiled without zlib or slz, the output of
haproxy -vv shows (null).

Make haproxy -vv output great again by providing the proper
information (which is what we did before).

This is for 1.8 only.

src/compression.c

index 27ab7f785aeebe8b2487271ad1f1ed27df8a9f5a..ecd2fa5a3cf1a0d289f53101446751663236aeaf 100644 (file)
@@ -696,6 +696,8 @@ static void __comp_fetch_init(void)
        memprintf(&ptr, "%s\nRunning on zlib version : %s", ptr, zlibVersion());
 #elif defined(USE_SLZ)
        memprintf(&ptr, "Built with libslz for stateless compression.");
+#else
+       memprintf(&ptr, "Built without compression support (neither USE_ZLIB nor USE_SLZ are set).");
 #endif
        memprintf(&ptr, "%s\nCompression algorithms supported :", ptr);