[gnome-software] snap: Fix crash authenticating with Ubuntu One.



commit 223183d07c598fadfa158e79010aaa6c5d545c43
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Oct 16 11:57:18 2017 +1300

    snap: Fix crash authenticating with Ubuntu One.
    
    This regression was introduced in 3e8a4ed.

 plugins/snap/gs-plugin-snap.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 01e39c0..e456b28 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -911,7 +911,6 @@ gs_plugin_auth_login (GsPlugin *plugin, GsAuth *auth,
                      GCancellable *cancellable, GError **error)
 {
        GsPluginData *priv = gs_plugin_get_data (plugin);
-       g_autoptr(SnapdAuthData) auth_data = NULL;
        g_autoptr(GVariant) macaroon_variant = NULL;
        g_autofree gchar *serialized_macaroon = NULL;
 
@@ -926,8 +925,8 @@ gs_plugin_auth_login (GsPlugin *plugin, GsAuth *auth,
        }
 
        macaroon_variant = g_variant_new ("(s^as)",
-                                         snapd_auth_data_get_macaroon (auth_data),
-                                         snapd_auth_data_get_discharges (auth_data));
+                                         snapd_auth_data_get_macaroon (priv->auth_data),
+                                         snapd_auth_data_get_discharges (priv->auth_data));
        serialized_macaroon = g_variant_print (macaroon_variant, FALSE);
        gs_auth_add_metadata (auth, "macaroon", serialized_macaroon);
 


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