summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_auditor_add_denomination.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_auditor_add_denomination.c')
-rw-r--r--src/lib/exchange_api_auditor_add_denomination.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/exchange_api_auditor_add_denomination.c b/src/lib/exchange_api_auditor_add_denomination.c
index 50bffd97..8952cd2f 100644
--- a/src/lib/exchange_api_auditor_add_denomination.c
+++ b/src/lib/exchange_api_auditor_add_denomination.c
@@ -187,17 +187,11 @@ TALER_EXCHANGE_add_auditor_denomination (
GNUNET_free (ah);
return NULL;
}
- body = json_pack ("{s:o}",
- "auditor_sig",
- GNUNET_JSON_from_data_auto (auditor_sig));
- if (NULL == body)
- {
- GNUNET_break (0);
- GNUNET_free (ah->url);
- GNUNET_free (ah);
- return NULL;
- }
+ body = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_data_auto ("auditor_sig",
+ auditor_sig));
eh = curl_easy_init ();
+ GNUNET_assert (NULL != eh);
if (GNUNET_OK !=
TALER_curl_easy_post (&ah->post_ctx,
eh,