summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-10-14 01:43:55 +0200
committerChristian Grothoff <christian@grothoff.org>2016-10-14 01:43:55 +0200
commit6987837f088999d9701669581813245132be3928 (patch)
tree2d69877a8f1751232de254bbcab74fbc85ad8102
parent32d23e7499a85ba24ca9a28310b208a383e05d35 (diff)
downloadexchange-6987837f088999d9701669581813245132be3928.tar.gz
exchange-6987837f088999d9701669581813245132be3928.tar.bz2
exchange-6987837f088999d9701669581813245132be3928.zip
fix #4730: amount coult end up being zero, so check should be for SYSERR, not for OK (as zero implies NO)
-rw-r--r--src/exchange/taler-exchange-httpd_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index 2cd879cf3..6b27a22a6 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -930,7 +930,7 @@ refresh_check_melt (struct MHD_Connection *connection,
if (TALER_amount_cmp (&coin_value,
&spent) < 0)
{
- GNUNET_assert (GNUNET_OK ==
+ GNUNET_assert (GNUNET_SYSERR !=
TALER_amount_subtract (&coin_residual,
&spent,
&coin_details->melt_amount_with_fee));