NetworkManager r4156 - in trunk: . src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r4156 - in trunk: . src
- Date: Wed, 8 Oct 2008 19:45:52 +0000 (UTC)
Author: dcbw
Date: Wed Oct 8 19:45:52 2008
New Revision: 4156
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4156&view=rev
Log:
2008-10-08 Dan Williams <dcbw redhat com>
* src/NetworkManagerSystem.c
- (find_route): ref the route so it doesn't get destroyed when the cache
is cleared
- (nm_system_device_set_priority): unref the route here after it's done
being used
Modified:
trunk/ChangeLog
trunk/src/NetworkManagerSystem.c
Modified: trunk/src/NetworkManagerSystem.c
==============================================================================
--- trunk/src/NetworkManagerSystem.c (original)
+++ trunk/src/NetworkManagerSystem.c Wed Oct 8 19:45:52 2008
@@ -796,6 +796,8 @@
if (addr->prefix == nl_addr_get_prefixlen (dst) &&
(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);
info->route = route;
break;
}
@@ -823,5 +825,6 @@
rtnl_route_set_prio (info.route, priority);
rtnl_route_add (nlh, info.route, 0);
+ rtnl_route_put (info.route);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]