Attention is currently required from: Arne Schwabe.

Hello Arne Schwabe,

I'd like you to do a code review.
Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2228?usp=email

to review the following change.


Change subject: options: check permission for --route-ipv6-gateway
......................................................................

options: check permission for --route-ipv6-gateway

Unlike --route-gateway, the handler never called VERIFY_PERMISSION(),
so the option was accepted in any context (<connection>, ccd, inline)
and was missing from option_types_found. Require OPT_P_ROUTE_EXTRAS,
as --route-gateway does.

Change-Id: Ifc72b3677056dd089b8c6cfae4bd07911b6f8407
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/options.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/28/2228/1

diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index e51ece7..2068393 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -5350,6 +5350,7 @@
     }
     else if (streq(p[0], "route-ipv6-gateway") && p[1] && !p[2])
     {
+        VERIFY_PERMISSION(OPT_P_ROUTE_EXTRAS);
         if (ipv6_addr_safe(p[1]))
         {
             options->route_ipv6_default_gateway = p[1];

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2228?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifc72b3677056dd089b8c6cfae4bd07911b6f8407
Gerrit-Change-Number: 2228
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to