aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-10-23 22:32:00 +0000
committerJames Yonan <james@openvpn.net>2010-10-23 22:32:00 +0000
commitc68e0cddf024ae5b18f89062bf7164da77f1cf06 (patch)
tree1ffd8e6581bcfb3baf67867572c5b5875e08357e
parentAdded --proto-force directive. (diff)
downloadopenvpn-c68e0cddf024ae5b18f89062bf7164da77f1cf06.tar.xz
Fixed initialization bug in route_list_add_default_gateway
(Gert Doering). git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6566 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r--route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/route.c b/route.c
index 5d8f8d6..20f62d5 100644
--- a/route.c
+++ b/route.c
@@ -450,6 +450,8 @@ init_route_list (struct route_list *rl,
struct route r;
int k;
+ CLEAR(netlist); /* init_route() will not always init this */
+
if (!init_route (&r,
&netlist,
&opt->routes[i],