summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-15 15:37:13 +0200
committerThomas Haller <thaller@redhat.com>2020-09-15 15:37:19 +0200
commitbe5f7ab7c936c3a0793b238aa22d8d909c517c74 (patch)
tree0b2cc3023eb407a90f708ab7636c79675a565af8
parent6ce482c526e0550c9bafdee8fcb5e6fa3c4e39e5 (diff)
downloadNetworkManager-be5f7ab7c936c3a0793b238aa22d8d909c517c74.tar.gz
device/ndisc: explicitly call nm_ndisc_stop() during addrconf6_cleanup()
-rw-r--r--src/devices/nm-device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 674d54ebf8..fefdfcf0e9 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -11080,7 +11080,10 @@ addrconf6_cleanup (NMDevice *self)
applied_config_clear (&priv->ac_ip6_config);
nm_clear_pointer (&priv->rt6_temporary_not_available, g_hash_table_unref);
nm_clear_g_source (&priv->rt6_temporary_not_available_id);
- g_clear_object (&priv->ndisc);
+ if (priv->ndisc) {
+ nm_ndisc_stop (priv->ndisc);
+ g_clear_object (&priv->ndisc);
+ }
}
/*****************************************************************************/