]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Removed error message for an option flag not supported with --server-ipv6
authorCamille Guérin <guerincamille56@gmail.com>
Wed, 29 Dec 2021 10:29:24 +0000 (11:29 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 10 Jan 2022 12:33:18 +0000 (13:33 +0100)
Signed-off-by: Camille Guerin <guerincamille56@gmail.com>
Closes: OpenVPN/openvpn#164
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20211229102924.8901-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23471.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c

index 0529c1417772168e50975850bcbc51fc224dbba9..bf8e77590222df3b4190b34ccb0e908504d51fd8 100644 (file)
@@ -6822,7 +6822,7 @@ add_option(struct options *options,
             }
         }
     }
-    else if (streq(p[0], "server-ipv6") && p[1] && !p[3])
+    else if (streq(p[0], "server-ipv6") && p[1] && !p[2])
     {
         const int lev = M_WARN;
         struct in6_addr network;
@@ -6845,12 +6845,6 @@ add_option(struct options *options,
         options->server_ipv6_defined = true;
         options->server_network_ipv6 = network;
         options->server_netbits_ipv6 = netbits;
-
-        if (p[2])       /* no "nopool" options or similar for IPv6 */
-        {
-            msg(msglevel, "error parsing --server-ipv6: %s is not a recognized flag", p[3]);
-            goto err;
-        }
     }
     else if (streq(p[0], "server-bridge") && p[1] && p[2] && p[3] && p[4] && !p[5])
     {