mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 05:50:21 +01:00
team: fix possible crash by ensuring teamd context is cleared
teamd_cleanup() might get called multiple times, and since the rest of the function is safe against multi-calls, make priv->tdc safe against being called again too.
This commit is contained in:
parent
788eed99de
commit
6b6265ebeb
1 changed files with 1 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ teamd_cleanup (NMDevice *dev, gboolean device_state_failed)
|
|||
if (priv->tdc) {
|
||||
teamdctl_disconnect (priv->tdc);
|
||||
teamdctl_free (priv->tdc);
|
||||
priv->tdc = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue