fix offset: do not add off for the index into the keys from the client

This commit is contained in:
Christian Grothoff 2015-08-14 22:05:08 +02:00
parent e34d340cae
commit 8a40432488
2 changed files with 2 additions and 1 deletions

View File

@ -1158,7 +1158,7 @@ TMH_DB_execute_refresh_reveal (struct MHD_Connection *connection,
session_hash, session_hash,
i + off, i + off,
refresh_session.num_oldcoins, refresh_session.num_oldcoins,
transfer_privs[i + off], transfer_privs[i],
melts, melts,
refresh_session.num_newcoins, refresh_session.num_newcoins,
denom_pubs))) denom_pubs)))

View File

@ -505,6 +505,7 @@ handle_refresh_melt_json (struct MHD_Connection *connection,
num_newcoins); num_newcoins);
return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES; return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES;
} }
GNUNET_CRYPTO_hash_context_read (hash_context, GNUNET_CRYPTO_hash_context_read (hash_context,
rcc->coin_ev, rcc->coin_ev,
rcc->coin_ev_size); rcc->coin_ev_size);