From: Razvan Cojocaru <[email protected]> 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]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2228 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2228 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering <[email protected]> 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]; _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
