[gnome-keyring/wip/cosimoc/gdbus-fixes: 5/11] dbus: fix wrong unpacking of Attributes variant



commit 24f3d5518af4b14c9658bfa4ffe6b1607755381e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Aug 29 09:50:46 2015 -0700

    dbus: fix wrong unpacking of Attributes variant
    
    gkd_exported_item_set_attributes() takes the variant we receive from the
    property setter, and trying to call g_variant_get_variant() on it will
    hit an assertion failure.

 daemon/dbus/gkd-secret-objects.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-objects.c b/daemon/dbus/gkd-secret-objects.c
index 1c7bde1..db4d815 100644
--- a/daemon/dbus/gkd-secret-objects.c
+++ b/daemon/dbus/gkd-secret-objects.c
@@ -320,8 +320,7 @@ gkd_secret_item_skeleton_set_property_dbus (GDBusConnection *connection,
        }
 
        if (g_strcmp0 (property_name, "Attributes") == 0) {
-               gkd_exported_item_set_attributes (GKD_EXPORTED_ITEM (self),
-                                                 g_variant_get_variant (value));
+               gkd_exported_item_set_attributes (GKD_EXPORTED_ITEM (self), value);
        } else if (g_strcmp0 (property_name, "Label") == 0) {
                gkd_exported_item_set_label (GKD_EXPORTED_ITEM (self),
                                             g_variant_get_string (value, NULL));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]