Ref the route, not unref it

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4157 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-10-08 20:03:35 +00:00
parent b339761a91
commit 5a5d032901

View file

@ -797,7 +797,7 @@ find_route (struct nl_object *object, gpointer user_data)
(addr->address & nm_utils_ip4_prefix_to_netmask (addr->prefix)) == dst_addr->s_addr) {
/* Ref the route so it sticks around after the cache is cleared */
rtnl_route_put (route);
rtnl_route_get (route);
info->route = route;
break;
}