commit bc3ec563736d28ba73ae4db364086fc30132b730
parent bccdf7e4521dd5587e7360e86a3aa386d8417302
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 19 Feb 2022 21:26:27 +0100
reject wire deadline of 'never' (#7157)
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git 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);