summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-10-13 23:13:09 +0200
committerChristian Grothoff <christian@grothoff.org>2016-10-13 23:13:09 +0200
commit32d23e7499a85ba24ca9a28310b208a383e05d35 (patch)
tree942ce1c1e11ec4701fbbfb02e5d81eab264b8cae /src
parent13f9fa426c338267db524e59283889ea47c32c35 (diff)
downloadexchange-32d23e7499a85ba24ca9a28310b208a383e05d35.tar.gz
exchange-32d23e7499a85ba24ca9a28310b208a383e05d35.tar.bz2
exchange-32d23e7499a85ba24ca9a28310b208a383e05d35.zip
fix returning wrong status code to MHD on malformed /refresh/reveal request
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index 374b588c1..2cd879cf3 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -1508,13 +1508,11 @@ TEH_DB_execute_refresh_reveal (struct MHD_Connection *connection,
sizeof (struct GNUNET_HashCode)))
{
GNUNET_break_op (0);
- ret = (MHD_YES ==
- TEH_RESPONSE_reply_refresh_reveal_missmatch (connection,
- &refresh_session,
- commit_coins,
- denom_pubs,
- &gamma_tp))
- ? GNUNET_NO : GNUNET_SYSERR;
+ ret = TEH_RESPONSE_reply_refresh_reveal_missmatch (connection,
+ &refresh_session,
+ commit_coins,
+ denom_pubs,
+ &gamma_tp);
for (j=0;j<refresh_session.num_newcoins;j++)
{
GNUNET_free (commit_coins[j].coin_ev);