exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5469970d11114ef092aa6f684b030c3b9c6590e6
parent 3c03c52c4615feb3ffc806356397fcea24e9e687
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 23 Aug 2022 21:26:03 +0200

payto URI malformed

Diffstat:
Msrc/bank-lib/fakebank.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c @@ -2813,6 +2813,16 @@ do_post_withdrawal (struct TALER_FAKEBANK_Handle *h, } } credit_name = TALER_xtalerbank_account_from_payto (exchange_payto_uri); + if (NULL == credit_name) + { + GNUNET_break_op (0); + GNUNET_assert (0 == + pthread_mutex_unlock (&h->big_lock)); + return TALER_MHD_reply_with_error (connection, + MHD_HTTP_BAD_REQUEST, + TALER_EC_GENERIC_PAYTO_URI_MALFORMED, + NULL); + } credit_account = lookup_account (h, credit_name, NULL);