Skip to content

Commit

Permalink
check_compression_settings_valid: Do not test for LZ4 in LZO check
Browse files Browse the repository at this point in the history
Probably introduced by copy & paste since there is no
COMP_ALGV2_LZO.

Github: #500
Change-Id: Id6b038c1c0095b2f22033e9dc7090e2507a373ab
Signed-off-by: Frank Lichtenheld <[email protected]>
Acked-by: Arne Schwabe <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg28251.html
Signed-off-by: Gert Doering <[email protected]>
(cherry picked from commit 4076d24)
  • Loading branch information
flichtenheld authored and cron2 committed Mar 8, 2024
1 parent 04e6826 commit 7a810e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openvpn/comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 7a810e6

Please sign in to comment.