diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-19 21:26:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-19 21:26:27 +0100 |
commit | bc3ec563736d28ba73ae4db364086fc30132b730 (patch) | |
tree | 210898d9a40df76405f7710c08b6419af2229570 | |
parent | bccdf7e4521dd5587e7360e86a3aa386d8417302 (diff) |
reject wire deadline of 'never' (#7157)
m--------- | contrib/gana | 0 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposit.c | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/contrib/gana b/contrib/gana -Subproject bb814747c82941a3cea6ec2d4c6961902995df1 +Subproject fc7a860e2e3f8ae1d73c1c5d9c91964ac8c8a3e diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index 7cd78119a..acdc6ee6d 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -307,6 +307,15 @@ TEH_handler_deposit (struct MHD_Connection *connection, TALER_EC_EXCHANGE_DEPOSIT_REFUND_DEADLINE_AFTER_WIRE_DEADLINE, NULL); } + if (GNUNET_TIME_absolute_is_never (deposit.wire_deadline.abs_time)) + { + GNUNET_break_op (0); + GNUNET_JSON_parse_free (spec); + return TALER_MHD_reply_with_error (connection, + MHD_HTTP_BAD_REQUEST, + TALER_EC_EXCHANGE_DEPOSIT_WIRE_DEADLINE_IS_NEVER, + NULL); + } deposit.receiver_wire_account = (char *) payto_uri; TALER_payto_hash (payto_uri, &dc.h_payto); |