summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_util.c')
-rw-r--r--src/backend/taler-merchant-httpd_util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_util.c b/src/backend/taler-merchant-httpd_util.c
index 800e41ab..9d62722c 100644
--- a/src/backend/taler-merchant-httpd_util.c
+++ b/src/backend/taler-merchant-httpd_util.c
@@ -99,8 +99,7 @@ MH_handler_hash_contract (struct TMH_RequestHandler *rh,
res = TMH_RESPONSE_reply_json_pack (connection,
MHD_HTTP_OK,
"{s:O}",
- "hash", GNUNET_JSON_from_data (&hc,
- sizeof (hc)));
+ "hash", GNUNET_JSON_from_data_auto (&hc));
json_decref (root);
return res;
}