diff options
Diffstat (limited to 'src/lib/exchange_api_management_auditor_disable.c')
-rw-r--r-- | src/lib/exchange_api_management_auditor_disable.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/exchange_api_management_auditor_disable.c b/src/lib/exchange_api_management_auditor_disable.c index 1ae657742..fb68ad6d3 100644 --- a/src/lib/exchange_api_management_auditor_disable.c +++ b/src/lib/exchange_api_management_auditor_disable.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2015-2020 Taler Systems SA + Copyright (C) 2015-2021 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -166,19 +166,13 @@ TALER_EXCHANGE_management_disable_auditor ( GNUNET_free (ah); return NULL; } - body = json_pack ("{s:o, s:o}", - "master_sig", - GNUNET_JSON_from_data_auto (master_sig), - "validity_end", - GNUNET_JSON_from_time_abs (validity_end)); - if (NULL == body) - { - GNUNET_break (0); - GNUNET_free (ah->url); - GNUNET_free (ah); - return NULL; - } + body = GNUNET_JSON_PACK ( + GNUNET_JSON_pack_data_auto ("master_sig", + master_sig), + GNUNET_JSON_pack_time_abs ("validity_end", + validity_end)); eh = curl_easy_init (); + GNUNET_assert (NULL != eh); if (GNUNET_OK != TALER_curl_easy_post (&ah->post_ctx, eh, |