gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: fix #6762


From: gnunet
Subject: [taler-merchant] branch master updated: fix #6762
Date: Sat, 20 Feb 2021 00:29:04 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 178d7928 fix #6762
178d7928 is described below

commit 178d7928855f4f118c98d010a261e9ee81b07c2f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 20 00:29:02 2021 +0100

    fix #6762
---
 .../taler-merchant-httpd_private-patch-instances-ID.c      | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c 
b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c
index 521dfe36..637ded04 100644
--- a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c
+++ b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c
@@ -304,7 +304,19 @@ TMH_private_patch_instances_ID (const struct 
TMH_RequestHandler *rh,
         GNUNET_assert (NULL != wm->j_wire);
         wm->wire_method
           = TALER_payto_get_method (ad.payto_uri);
-        GNUNET_assert (NULL != wm->wire_method);
+        if (NULL == wm->wire_method)
+        {
+          GNUNET_break_op (0);
+          TMH_db->rollback (TMH_db->cls);
+          GNUNET_JSON_parse_free (spec);
+          json_decref (wm->j_wire);
+          GNUNET_free (wm);
+          return TALER_MHD_reply_with_error (connection,
+                                             MHD_HTTP_BAD_REQUEST,
+                                             
TALER_EC_GENERIC_PAYTO_URI_MALFORMED,
+                                             ad.payto_uri);
+
+        }
         /* This also tests for things like the IBAN being malformed */
         if (GNUNET_OK !=
             TALER_JSON_merchant_wire_signature_hash (wm->j_wire,

-- 
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]