From 1b9a8b81428a8d9fc20da93d0e01c8bf8f674a03 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 18 Feb 2014 22:28:49 +0100 Subject: Fix not using low priority on CONNECTED state --- main/openvpn/src/openvpn/route.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main/openvpn/src') diff --git a/main/openvpn/src/openvpn/route.c b/main/openvpn/src/openvpn/route.c index 545a929b..e4224e19 100644 --- a/main/openvpn/src/openvpn/route.c +++ b/main/openvpn/src/openvpn/route.c @@ -109,6 +109,13 @@ new_route_ipv6_option_list (struct gc_arena *a) return ret; } +/* + * NOTE: structs are cloned/copied shallow by design. + * The routes list from src will stay intact since it is allocated using + * the options->gc. The cloned/copied lists will share this common tail + * to avoid copying the data around between pulls. Pulled routes use + * the c2->gc so they get freed immediately after a reconnect. + */ struct route_option_list * clone_route_option_list (const struct route_option_list *src, struct gc_arena *a) { -- cgit v1.2.3