]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
check_compression_settings_valid: Do not test for LZ4 in LZO check
authorFrank Lichtenheld <frank@lichtenheld.com>
Fri, 16 Feb 2024 12:30:37 +0000 (13:30 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 8 Mar 2024 10:33:17 +0000 (11:33 +0100)
Probably introduced by copy & paste since there is no
COMP_ALGV2_LZO.

Github: #500
Change-Id: Id6b038c1c0095b2f22033e9dc7090e2507a373ab
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
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 <gert@greenie.muc.de>
(cherry picked from commit 4076d24f2f4adc432753aa62bd8158e3bf89ee21)

src/openvpn/comp.c

index 6e30369445f20972d02c84569d6c180f327dc7d5..311f3e9191ed3c010926930bd4a8ad6985d45403 100644 (file)
@@ -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.");