From: Frank Lichtenheld Date: Fri, 22 Aug 2025 20:52:16 +0000 (+0200) Subject: options: Fix --hash-size virtual argument X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fopenvpn.git options: Fix --hash-size virtual argument Previously we ignored the second argument to --hash-size. This bug is older than the openvpn git repository, but clearly this is not an option often used (or at all). Change-Id: Ibec7ffb9085503f72e79514776042bc310384f13 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Message-Id: <20250822205223.3492-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32658.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 5f9971cd2..e9584a829 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -7951,7 +7951,7 @@ add_option(struct options *options, char *p[], bool is_inline, const char *file, goto err; } options->real_hash_size = real; - options->virtual_hash_size = real; + options->virtual_hash_size = virtual; } else if (streq(p[0], "connect-freq") && p[1] && p[2] && !p[3]) {