diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-06-16 22:35:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-06-16 22:35:28 +0200 |
commit | 0f66ec87f8613795effdf11cc27db7b2f2ba71e4 (patch) | |
tree | 12b45e37d595201f62c963e493ba8907c5a4772c /src/backend | |
parent | 23b4c5eb9d830fa272c8011b62ac20ef7749f246 (diff) |
identify where #6904 breaks
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 75707960..6208fdcf 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -980,6 +980,23 @@ patch_order (struct MHD_Connection *connection, "merchant_pub", GNUNET_JSON_from_data_auto ( &hc->instance->merchant_pub))); + /* FIXME: #6904: transform 'true' in $forgettable into random salts! */ + /* sanity check result */ + { + struct GNUNET_HashCode hc; + + if (GNUNET_OK != + TALER_JSON_contract_hash (order, + &hc)) + { + GNUNET_break (0); + return TALER_MHD_reply_with_error ( + connection, + MHD_HTTP_INTERNAL_SERVER_ERROR, + TALER_EC_GENERIC_FAILED_COMPUTE_JSON_HASH, + "could not compute hash of patched order"); + } + } return execute_order (connection, hc, h_post_data, |