summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 7649d43ea..a9713a45a 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -1048,12 +1048,17 @@ decode_keys_json (const json_t *resp_obj,
if (have_age_restricted_denom)
{
struct GNUNET_HashCode hcr;
+
GNUNET_CRYPTO_hash_context_finish (hash_context_restricted,
&hcr);
GNUNET_CRYPTO_hash_context_read (hash_context,
&hcr,
sizeof(struct GNUNET_HashCode));
}
+ else
+ {
+ GNUNET_CRYPTO_hash_context_abort (hash_context_restricted);
+ }
GNUNET_CRYPTO_hash_context_finish (hash_context,
&ks.hc);