From 8a4043248893a7c7cb3b896a0ed24d7611796c98 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 14 Aug 2015 22:05:08 +0200 Subject: fix offset: do not add off for the index into the keys from the client --- src/mint/taler-mint-httpd_db.c | 2 +- src/mint/taler-mint-httpd_refresh.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c index 2a4c16748..0e5ac1429 100644 --- a/src/mint/taler-mint-httpd_db.c +++ b/src/mint/taler-mint-httpd_db.c @@ -1158,7 +1158,7 @@ TMH_DB_execute_refresh_reveal (struct MHD_Connection *connection, session_hash, i + off, refresh_session.num_oldcoins, - transfer_privs[i + off], + transfer_privs[i], melts, refresh_session.num_newcoins, denom_pubs))) diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c index 16fe3557f..f5bfb3c8b 100644 --- a/src/mint/taler-mint-httpd_refresh.c +++ b/src/mint/taler-mint-httpd_refresh.c @@ -505,6 +505,7 @@ handle_refresh_melt_json (struct MHD_Connection *connection, num_newcoins); return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES; } + GNUNET_CRYPTO_hash_context_read (hash_context, rcc->coin_ev, rcc->coin_ev_size); -- cgit v1.2.3