From b687872f68c122f1f21a53a2a52f834c0febf0b3 Mon Sep 17 00:00:00 2001 From: Mathieu Trudel-Lapierre Date: Mon, 10 Oct 2011 16:36:36 -0500 Subject: [PATCH] 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. --- src/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-device.c b/src/nm-device.c index 559606cb08..a4cd3e9332 100644 --- a/src/nm-device.c +++ b/src/nm-device.c @@ -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 */