|
|
@@ -141,7 +141,7 @@ on_json_parsed (GObject *object,
|
|
|
continue;
|
|
|
|
|
|
enc_content = json_object_get_string_member (data, "content");
|
|
|
- content = iridium_crypto_decrypt_item (enc_content, params, enc_item_key, uuid);
|
|
|
+ content = iridium_crypto_decrypt_item (enc_content, params, enc_item_key, uuid, &error);
|
|
|
|
|
|
if (content) {
|
|
|
item = deserialize_item (data, content);
|
|
|
@@ -149,6 +149,11 @@ on_json_parsed (GObject *object,
|
|
|
if (item)
|
|
|
items = g_list_append (items, item);
|
|
|
}
|
|
|
+ else {
|
|
|
+ g_task_return_error (task, error);
|
|
|
+ iridium_crypto_auth_params_free (params);
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
g_free (content);
|
|
|
}
|