aboutsummaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-01-29 22:05:23 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-01-29 22:05:23 +0100
commit452ab68423d0a6ee78e5f360251d0d7f2262f1ab (patch)
tree645a0d3472e86ec8945f88effc8c8a29fe764d83 /src/auditor
parentc15dc4fdb166e2ec904f18f5065b6c0011c4c80a (diff)
fix DB
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
index 99dbbbb05..a3d03baf2 100644
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c
+++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
@@ -226,6 +226,7 @@ TAH_DEPOSIT_CONFIRMATION_handler (struct TAH_RequestHandler *rh,
int res;
struct TALER_AUDITORDB_DepositConfirmation dc;
struct TALER_AUDITORDB_ExchangeSigningKey es;
+
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed_auto ("h_contract_terms", &dc.h_contract_terms),
GNUNET_JSON_spec_fixed_auto ("h_wire", &dc.h_wire),
@@ -259,11 +260,13 @@ TAH_DEPOSIT_CONFIRMATION_handler (struct TAH_RequestHandler *rh,
spec);
json_decref (json);
es.exchange_pub = dc.exchange_pub; /* used twice! */
+ dc.master_public_key = es.master_public_key;
if (GNUNET_SYSERR == res)
return MHD_NO; /* hard failure */
if (GNUNET_NO == res)
return MHD_YES; /* failure */
+
res = verify_and_execute_deposit_confirmation (connection,
&dc,
&es);