mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 12:28:11 +02:00
ifcfg-rh: fix crash when system bus isn't around
This commit is contained in:
parent
833bc16d12
commit
f082e243c6
1 changed files with 4 additions and 2 deletions
|
|
@ -655,8 +655,10 @@ sc_plugin_ifcfg_init (SCPluginIfcfg *plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
dbus_g_connection_unref (priv->bus);
|
if (priv->bus) {
|
||||||
priv->bus = NULL;
|
dbus_g_connection_unref (priv->bus);
|
||||||
|
priv->bus = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue