diff options
| author | Thomas Haller <thaller@redhat.com> | 2020-09-15 15:37:13 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2020-09-15 15:37:19 +0200 |
| commit | be5f7ab7c936c3a0793b238aa22d8d909c517c74 (patch) | |
| tree | 0b2cc3023eb407a90f708ab7636c79675a565af8 | |
| parent | 6ce482c526e0550c9bafdee8fcb5e6fa3c4e39e5 (diff) | |
| download | NetworkManager-be5f7ab7c936c3a0793b238aa22d8d909c517c74.tar.gz | |
device/ndisc: explicitly call nm_ndisc_stop() during addrconf6_cleanup()
| -rw-r--r-- | src/devices/nm-device.c | 5 |
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); + } } /*****************************************************************************/ |
