gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: payto URI malformed


From: gnunet
Subject: [taler-exchange] branch master updated: payto URI malformed
Date: Tue, 23 Aug 2022 21:26:06 +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 5469970d payto URI malformed
5469970d is described below

commit 5469970d11114ef092aa6f684b030c3b9c6590e6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Aug 23 21:26:03 2022 +0200

    payto URI malformed
---
 src/bank-lib/fakebank.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index e13015f2..961ff363 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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]