diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-23 21:26:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-23 21:26:03 +0200 |
commit | 5469970d11114ef092aa6f684b030c3b9c6590e6 (patch) | |
tree | 7c8e995cfae84227d18b8cb5113b4eea4fa7e227 /src | |
parent | 3c03c52c4615feb3ffc806356397fcea24e9e687 (diff) | |
download | exchange-5469970d11114ef092aa6f684b030c3b9c6590e6.tar.xz |
payto URI malformed
Diffstat (limited to 'src')
-rw-r--r-- | src/bank-lib/fakebank.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index e13015f21..961ff3630 100644 --- 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); |