summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_common.c')
-rw-r--r--src/lib/merchant_api_common.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/merchant_api_common.c b/src/lib/merchant_api_common.c
index 123ad5bb..f375efd9 100644
--- a/src/lib/merchant_api_common.c
+++ b/src/lib/merchant_api_common.c
@@ -215,7 +215,7 @@ parse_taler_uri_scheme_action (const char *uri,
*
* @param pay_uri the URI to parse.
* @param[out] parse_data data extracted from the URI. Must be free'd.
- * @return GNUNET_SYSERR if @e pay_uri is malformed, GNUNET_OK otherwise.
+ * @return #GNUNET_SYSERR if @e pay_uri is malformed, #GNUNET_OK otherwise.
*/
int
TALER_MERCHANT_parse_pay_uri (const char *pay_uri,
@@ -232,6 +232,7 @@ TALER_MERCHANT_parse_pay_uri (const char *pay_uri,
(0 != strcmp ("pay",
action)))
{
+ GNUNET_break_op (0);
GNUNET_free (action);
GNUNET_free (path);
return GNUNET_SYSERR;
@@ -249,6 +250,7 @@ TALER_MERCHANT_parse_pay_uri (const char *pay_uri,
if (NULL == session_id)
{
+ GNUNET_break_op (0);
GNUNET_free (path);
return GNUNET_SYSERR;
}
@@ -259,6 +261,7 @@ TALER_MERCHANT_parse_pay_uri (const char *pay_uri,
'/');
if (NULL == order_id)
{
+ GNUNET_break_op (0);
GNUNET_free (path);
return GNUNET_SYSERR;
}
@@ -289,7 +292,8 @@ TALER_MERCHANT_parse_pay_uri (const char *pay_uri,
'=');
if (NULL == ct_data)
{
- GNUNET_free (order_id);
+ GNUNET_break_op (0);
+ GNUNET_free (path);
return GNUNET_SYSERR;
}
*ct_data = '\0';
@@ -303,7 +307,8 @@ TALER_MERCHANT_parse_pay_uri (const char *pay_uri,
claim_token,
sizeof (*claim_token))))
{
- GNUNET_free (order_id);
+ GNUNET_break_op (0);
+ GNUNET_free (path);
GNUNET_free (claim_token);
return GNUNET_SYSERR;
}