[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: reject wire deadline of 'never'
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: reject wire deadline of 'never' (#7157) |
Date: |
Sat, 19 Feb 2022 21:27:40 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new bc3ec563 reject wire deadline of 'never' (#7157)
bc3ec563 is described below
commit bc3ec563736d28ba73ae4db364086fc30132b730
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 19 21:26:27 2022 +0100
reject wire deadline of 'never' (#7157)
---
contrib/gana | 2 +-
src/exchange/taler-exchange-httpd_deposit.c | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/contrib/gana b/contrib/gana
index bb814747..fc7a860e 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit bb814747c82941a3cea6ec2d4c6961902995df17
+Subproject commit fc7a860e2e3f8ae1d73c1c5d9c91964ac8c8a3ec
diff --git a/src/exchange/taler-exchange-httpd_deposit.c
b/src/exchange/taler-exchange-httpd_deposit.c
index 7cd78119..acdc6ee6 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);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: reject wire deadline of 'never' (#7157),
gnunet <=