summaryrefslogtreecommitdiff
path: root/main/openvpn/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-02-18 22:28:49 +0100
committerArne Schwabe <arne@rfc2549.org>2014-02-18 22:28:49 +0100
commit1b9a8b81428a8d9fc20da93d0e01c8bf8f674a03 (patch)
tree78fd7b15647bc1d39675a823aa9dd718fac9f318 /main/openvpn/src
parentc5ed8dea40bdcd3ca89093227ac43f60d1e333a8 (diff)
Fix not using low priority on CONNECTED state
Diffstat (limited to 'main/openvpn/src')
-rw-r--r--main/openvpn/src/openvpn/route.c7
1 files changed, 7 insertions, 0 deletions
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)
{