[gnome-software/wip/ubuntu-3-26: 1/13] snap: Fix crash authenticating with Ubuntu One.



commit 50d50436a4775dd45f7180e4cbc3c69d4ebd23de
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 47c55397b.

 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 1b95f93..fba35f0 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -907,7 +907,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;
 
@@ -922,8 +921,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]