]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
options: Fix --hash-size virtual argument master
authorFrank Lichtenheld <frank@lichtenheld.com>
Fri, 22 Aug 2025 20:52:16 +0000 (22:52 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 22 Aug 2025 20:54:23 +0000 (22:54 +0200)
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 <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/options.c

index 5f9971cd288bbbf9a9acdf937e1bb0222348ee44..e9584a82967652e0d9a31e195a90f6f3063b0358 100644 (file)
@@ -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])
     {