summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2015-06-22 08:02:39 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2015-06-24 08:47:39 +0100
commit5c2ac3f1ac452755df1c08480a0ee944138b42ec (patch)
tree9058c7ca5f7307c6b610bda2bd498326d64cf0b5 /monitor
parentacbe277ed3636668faaf343ba6353fb28dbc9ec0 (diff)
downloadgvfs-5c2ac3f1ac452755df1c08480a0ee944138b42ec.tar.gz
udisks2: Handle libsecret error properly
secret_password_clear_finish() returns whether any passwords are removed, so it may return FALSE without setting error. Handle this properly (in this case all we care about is that there wasn't an error). https://bugzilla.gnome.org/show_bug.cgi?id=751038
Diffstat (limited to 'monitor')
-rw-r--r--monitor/udisks2/gvfsudisks2volume.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/udisks2/gvfsudisks2volume.c b/monitor/udisks2/gvfsudisks2volume.c
index 5e83c2c8..fac90e5c 100644
--- a/monitor/udisks2/gvfsudisks2volume.c
+++ b/monitor/udisks2/gvfsudisks2volume.c
@@ -1119,7 +1119,8 @@ luks_delete_passphrase_cb (GObject *source,
MountData *data = user_data;
GError *error = NULL;
- if (secret_password_clear_finish (result, &error))
+ secret_password_clear_finish (result, &error);
+ if (!error)
{
/* with the bad passphrase out of the way, try again */
g_free (data->passphrase);