[gnome-software/gnome-3-26] snap: Fix crash authenticating with Ubuntu One.
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] snap: Fix crash authenticating with Ubuntu One.
- Date: Sun, 15 Oct 2017 23:00:16 +0000 (UTC)
commit 205e5917704a32fca56ae6165d5961052a2145f9
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]