Gert Doering has submitted this change. ( https://gerrit.openvpn.net/c/openvpn/+/2228?usp=email )
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]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2228 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg41759.html Signed-off-by: Gert Doering <[email protected]> --- M src/openvpn/options.c 1 file changed, 1 insertion(+), 0 deletions(-) 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: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ifc72b3677056dd089b8c6cfae4bd07911b6f8407 Gerrit-Change-Number: 2228 Gerrit-PatchSet: 2 Gerrit-Owner: Răzvan Cojocaru <[email protected]> Gerrit-Reviewer: Arne Schwabe <[email protected]> Gerrit-Reviewer: Gert Doering <[email protected]> Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
