[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] 02/02: log where parsing failed
From: |
gnunet |
Subject: |
[taler-merchant] 02/02: log where parsing failed |
Date: |
Sat, 22 Aug 2020 18:51:04 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
commit 13e71102938d16ff4777501532b3f8d1f574ad62
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Aug 22 18:50:59 2020 +0200
log where parsing failed
---
src/lib/merchant_api_common.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/lib/merchant_api_common.c b/src/lib/merchant_api_common.c
index f375efd..55d4209 100644
--- a/src/lib/merchant_api_common.c
+++ b/src/lib/merchant_api_common.c
@@ -361,7 +361,7 @@ TALER_MERCHANT_parse_pay_uri_free (
*
* @param refund_uri the URI to parse.
* @param[out] parse_data data extracted from the URI. Must be free'd.
- * @return GNUNET_SYSERR if @e refund_uri is malformed, GNUNET_OK otherwise.
+ * @return #GNUNET_SYSERR if @e refund_uri is malformed, #GNUNET_OK otherwise.
*/
int
TALER_MERCHANT_parse_refund_uri (
@@ -379,6 +379,7 @@ TALER_MERCHANT_parse_refund_uri (
(0 != strcmp ("refund",
action)))
{
+ GNUNET_break_op (0);
GNUNET_free (action);
GNUNET_free (path);
return GNUNET_SYSERR;
@@ -395,6 +396,7 @@ TALER_MERCHANT_parse_refund_uri (
if (NULL == last_seg)
{
+ GNUNET_break_op (0);
GNUNET_free (path);
return GNUNET_SYSERR;
}
@@ -405,6 +407,7 @@ TALER_MERCHANT_parse_refund_uri (
'/');
if (NULL == order_id)
{
+ GNUNET_break_op (0);
GNUNET_free (path);
return GNUNET_SYSERR;
}
@@ -421,6 +424,7 @@ TALER_MERCHANT_parse_refund_uri (
if (0 != strlen (last_seg))
{
+ GNUNET_break_op (0);
GNUNET_free (path);
return GNUNET_SYSERR;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.