summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-14 15:12:02 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-14 15:12:02 +0100
commitcba9f8614efab7805d736ac795f8edb970c6a301 (patch)
treef5bd8dd1863f5faa0f3d334a01d6a1eba42c7a16 /src/exchange/taler-exchange-httpd_deposit.c
parent90886bd4115975f057bae6853ecefa23c5352759 (diff)
downloadexchange-cba9f8614efab7805d736ac795f8edb970c6a301.tar.gz
exchange-cba9f8614efab7805d736ac795f8edb970c6a301.tar.bz2
exchange-cba9f8614efab7805d736ac795f8edb970c6a301.zip
spass
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index 96e30e43..48504778 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2014-2017 Inria and GNUnet e.V.
+ Copyright (C) 2014-2020 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free Software
@@ -432,7 +432,10 @@ TEH_DEPOSIT_handler_deposit (struct TEH_RequestHandler *rh,
upload_data_size,
&json);
if (GNUNET_SYSERR == res)
+ {
+ GNUNET_break (0);
return MHD_NO;
+ }
if ( (GNUNET_NO == res) ||
(NULL == json) )
return MHD_YES;
@@ -444,10 +447,15 @@ TEH_DEPOSIT_handler_deposit (struct TEH_RequestHandler *rh,
spec);
json_decref (json);
if (GNUNET_SYSERR == res)
+ {
+ GNUNET_break (0);
return MHD_NO; /* hard failure */
+ }
if (GNUNET_NO == res)
+ {
+ GNUNET_break_op (0);
return MHD_YES; /* failure */
-
+ }
deposit.receiver_wire_account = wire;
if (deposit.refund_deadline.abs_value_us > deposit.wire_deadline.abs_value_us)
{