ip6: make sure static routes are flushed for manual configs too

Manual configs don't require an IP6Manager object and thus static
routes wouldn't get flushed on device deactivation.
This commit is contained in:
Mathieu Trudel-Lapierre 2011-10-10 16:36:36 -05:00 committed by Dan Williams
parent b0e6033ba9
commit b687872f68

View file

@ -2834,7 +2834,7 @@ nm_device_deactivate (NMDeviceInterface *device, NMDeviceStateReason reason)
nm_device_get_iface (self), reason_to_string (reason), reason);
/* Save whether or not we tried IPv6 for later */
if (NM_DEVICE_GET_PRIVATE (self)->ip6_manager)
if (priv->ip6_manager || priv->ip6_config)
tried_ipv6 = TRUE;
/* Break the activation chain */