From 13e71102938d16ff4777501532b3f8d1f574ad62 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Aug 2020 18:50:59 +0200 Subject: log where parsing failed --- src/lib/merchant_api_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/merchant_api_common.c b/src/lib/merchant_api_common.c index f375efd9..55d4209f 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; } -- cgit v1.2.3