From 7a810e64e54eda264c9cf184f442a3bae8df66af Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 16 Feb 2024 13:30:37 +0100 Subject: [PATCH] check_compression_settings_valid: Do not test for LZ4 in LZO check Probably introduced by copy & paste since there is no COMP_ALGV2_LZO. Github: #500 Change-Id: Id6b038c1c0095b2f22033e9dc7090e2507a373ab Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20240216123037.3670448-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28251.html Signed-off-by: Gert Doering (cherry picked from commit 4076d24f2f4adc432753aa62bd8158e3bf89ee21) --- src/openvpn/comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/comp.c b/src/openvpn/comp.c index 6e30369445f..311f3e9191e 100644 --- a/src/openvpn/comp.c +++ b/src/openvpn/comp.c @@ -195,7 +195,7 @@ check_compression_settings_valid(struct compress_options *info, int msglevel) } #endif #ifndef ENABLE_LZO - if (info->alg == COMP_ALG_LZO || info->alg == COMP_ALG_LZ4) + if (info->alg == COMP_ALG_LZO) { msg(msglevel, "OpenVPN is compiled without LZO support. Requested " "compression cannot be enabled.");