Skip to contentSkip to conversation

Removed error message for an option flag not supported with --server-ipv6

PATCH In review Gert Doering 2 participants 3 messages Dec 29, 2021 – Jan 10, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Removed error message for an option flag not supported with --server-ipv6

From: Camille Guérin <[email protected]...>

Closes OpenVPN/openvpn#164
---
 src/openvpn/options.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
src/openvpn/options.c +1 -7
index ac13412a..f59d89cb 100644
@@ -6870,7 +6870,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;
@@ -6893,12 +6893,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])
     {
Signature · 1 line
2.26.3
Acked-by on v1 1/1
#1 lore raw

Looks good to me.

Quoted 47 lines

Gert Doering <[email protected]...> hat am 29.12.2021 11:29 geschrieben:

From: Camille Guérin <[email protected]...>

Closes OpenVPN/openvpn#164
---
 src/openvpn/options.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
src/openvpn/options.c +1 -7
index ac13412a..f59d89cb 100644
@@ -6870,7 +6870,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;
@@ -6893,12 +6893,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])
     {
Signature · 8 lines
2.26.3



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

--
Frank Lichtenheld

#2 lore raw
In reply to Gert Doering

Your patch has been applied to the master branch.

commit c2c8128ad56e5ee1912166218ee36a2f0fe5b5c2

Author: Camille Guérin
Date:   Wed Dec 29 11:29:24 2021 +0100
     Removed error message for an option flag not supported with --server-ipv6

     Signed-off-by: Camille Guerin <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg23471.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering