libnm-glib: fix demarshalling of Dhcp6Config property changes

This bit apparently got forgotten in 10ea7a911c
This commit is contained in:
Dan Williams
2011-06-18 17:16:48 -05:00
parent ffbb7df4b8
commit cfd6ba1690

View File

@@ -228,12 +228,10 @@ demarshal_dhcp6_config (NMObject *object, GParamSpec *pspec, GValue *value, gpoi
NMDHCP6Config *config = NULL;
DBusGConnection *connection;
if (value) {
if (!G_VALUE_HOLDS (value, DBUS_TYPE_G_OBJECT_PATH))
return FALSE;
priv->got_dhcp6_config = TRUE;
if (value) {
path = g_value_get_boxed (value);
if (path) {
config = NM_DHCP6_CONFIG (_nm_object_cache_get (path));
@@ -244,6 +242,8 @@ demarshal_dhcp6_config (NMObject *object, GParamSpec *pspec, GValue *value, gpoi
}
}
priv->got_dhcp6_config = TRUE;
if (priv->dhcp6_config) {
g_object_unref (priv->dhcp6_config);
priv->dhcp6_config = NULL;