[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: identify where #6904 breaks
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: identify where #6904 breaks |
Date: |
Wed, 16 Jun 2021 22:35:30 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 0f66ec87 identify where #6904 breaks
0f66ec87 is described below
commit 0f66ec87f8613795effdf11cc27db7b2f2ba71e4
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jun 16 22:35:28 2021 +0200
identify where #6904 breaks
---
src/backend/taler-merchant-httpd_private-post-orders.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: identify where #6904 breaks,
gnunet <=