]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed initialization bug in route_list_add_default_gateway
authorJames Yonan <james@openvpn.net>
Sat, 23 Oct 2010 22:32:00 +0000 (22:32 +0000)
committerJames Yonan <james@openvpn.net>
Sat, 23 Oct 2010 22:32:00 +0000 (22:32 +0000)
(Gert Doering).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6566 e7ae566f-a301-0410-adde-c780ea21d3b5

route.c

diff --git a/route.c b/route.c
index 5d8f8d66afc2fe0f58ac44da5885075e87b8e32e..20f62d547864b34a4b3d3288be66411f4b86f8bc 100644 (file)
--- 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],