fix returning wrong status code to MHD on malformed /refresh/reveal request

This commit is contained in:
Christian Grothoff 2016-10-13 23:13:09 +02:00
parent 13f9fa426c
commit 32d23e7499

View File

@ -1508,13 +1508,11 @@ TEH_DB_execute_refresh_reveal (struct MHD_Connection *connection,
sizeof (struct GNUNET_HashCode))) sizeof (struct GNUNET_HashCode)))
{ {
GNUNET_break_op (0); GNUNET_break_op (0);
ret = (MHD_YES == ret = TEH_RESPONSE_reply_refresh_reveal_missmatch (connection,
TEH_RESPONSE_reply_refresh_reveal_missmatch (connection, &refresh_session,
&refresh_session, commit_coins,
commit_coins, denom_pubs,
denom_pubs, &gamma_tp);
&gamma_tp))
? GNUNET_NO : GNUNET_SYSERR;
for (j=0;j<refresh_session.num_newcoins;j++) for (j=0;j<refresh_session.num_newcoins;j++)
{ {
GNUNET_free (commit_coins[j].coin_ev); GNUNET_free (commit_coins[j].coin_ev);