[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: /withdrawals required
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: /withdrawals required |
Date: |
Tue, 23 Aug 2022 22:16:38 +0200 |
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 7585e863 /withdrawals required
7585e863 is described below
commit 7585e863645184d9d93cba26bc239b0bbba7e687
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Aug 23 22:16:35 2022 +0200
/withdrawals required
---
src/bank-lib/fakebank.c | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 961ff363..6fa15088 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -3656,12 +3656,21 @@ handle_bank_access (struct TALER_FAKEBANK_Handle *h,
char *acc;
MHD_RESULT ret;
- if (NULL != acc_name)
- acc = GNUNET_strndup (acc_name,
- end_acc - acc_name);
if ( (NULL == end_acc) ||
- (0 != strcmp (end_acc,
- "/withdrawals")) )
+ (0 != strncmp (end_acc,
+ "/withdrawals",
+ strlen ("/withdrawals"))) )
+ {
+ GNUNET_break_op (0);
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_NOT_FOUND,
+ TALER_EC_GENERIC_ENDPOINT_UNKNOWN,
+ acc_name);
+ }
+ acc = GNUNET_strndup (acc_name,
+ end_acc - acc_name);
+ end_acc += strlen ("/withdrawals");
+ if ('/' == *end_acc)
{
const char *wid = end_acc + 1;
char *wi;
@@ -3711,7 +3720,13 @@ handle_bank_access (struct TALER_FAKEBANK_Handle *h,
GNUNET_free (acc);
return ret;
}
- GNUNET_assert (0);
+ GNUNET_break_op (0);
+ GNUNET_free (wi);
+ GNUNET_free (acc);
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_NOT_FOUND,
+ TALER_EC_GENERIC_ENDPOINT_UNKNOWN,
+ acc_name);
}
ret = post_account_withdrawals_access (h,
connection,
--
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: /withdrawals required,
gnunet <=