summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-27 20:32:11 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-27 20:32:11 +0100
commit7d93e843f3b1cc41bb5d336d6ab785ae8360a85f (patch)
tree38ea0b94bbd14f709138b6e2dfefa702e3592138
parent50ffc2d7969088ac8c58c82922b0f259b2dab3cc (diff)
downloadanastasis-7d93e843f3b1cc41bb5d336d6ab785ae8360a85f.tar.gz
anastasis-7d93e843f3b1cc41bb5d336d6ab785ae8360a85f.tar.bz2
anastasis-7d93e843f3b1cc41bb5d336d6ab785ae8360a85f.zip
fix #7044
-rw-r--r--src/lib/anastasis_backup.c1
-rw-r--r--src/reducer/anastasis_api_backup_redux.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/anastasis_backup.c b/src/lib/anastasis_backup.c
index 711fcd4..21dd291 100644
--- a/src/lib/anastasis_backup.c
+++ b/src/lib/anastasis_backup.c
@@ -787,6 +787,7 @@ ANASTASIS_secret_share (struct GNUNET_CURL_Context *ctx,
}
esc_methods = json_array ();
+ GNUNET_assert (NULL != esc_methods);
for (unsigned int k = 0; k < policies_len; k++)
{
const struct ANASTASIS_Policy *policy = policies[k];
diff --git a/src/reducer/anastasis_api_backup_redux.c b/src/reducer/anastasis_api_backup_redux.c
index e300081..eee1b70 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -3149,8 +3149,11 @@ secret_share_result_cb (void *cls,
details = GNUNET_JSON_PACK (
GNUNET_JSON_pack_uint64 ("http_status",
sr->details.provider_failure.http_status),
- GNUNET_JSON_pack_uint64 ("upload_status",
+ GNUNET_JSON_pack_uint64 ("code",
sr->details.provider_failure.ec),
+ GNUNET_JSON_pack_string ("hint",
+ TALER_ErrorCode_get_hint (
+ sr->details.provider_failure.ec)),
GNUNET_JSON_pack_string ("provider_url",
sr->details.provider_failure.provider_url));
uc->cb (uc->cb_cls,