ifcfg-rh: fix crash when system bus isn't around

This commit is contained in:
Dan Williams 2011-09-19 17:38:58 -05:00
parent 833bc16d12
commit f082e243c6

View file

@ -655,8 +655,10 @@ sc_plugin_ifcfg_init (SCPluginIfcfg *plugin)
}
if (!success) {
dbus_g_connection_unref (priv->bus);
priv->bus = NULL;
if (priv->bus) {
dbus_g_connection_unref (priv->bus);
priv->bus = NULL;
}
}
}