commit 63a17745f067660cabed69104e3462e9eb962a74
parent f26f41fc51af2676107f0ac98d888b8b5f5d7de8
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 23 Aug 2025 22:50:41 +0200
fix copy and paste error
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
@@ -2523,7 +2523,7 @@ add_instance_cb (void *cls,
if (NULL != mi->settings.email)
mi->settings.email = GNUNET_strdup (mi->settings.email);
if (NULL != mi->settings.phone)
- mi->settings.email = GNUNET_strdup (mi->settings.phone);
+ mi->settings.phone = GNUNET_strdup (mi->settings.phone);
if (NULL != mi->settings.website)
mi->settings.website = GNUNET_strdup (mi->settings.website);
if (NULL != mi->settings.logo)
diff --git a/src/lib/taler_merchant_pay_service.c b/src/lib/taler_merchant_pay_service.c
@@ -824,15 +824,17 @@ enum TALER_MERCHANT_OrderPayErrorCode
TALER_MERCHANT_order_pay_start (struct TALER_MERCHANT_OrderPayHandle *ph)
{
/* all the old mandatory checks */
- if (! ph->merchant_url || ! ph->order_id)
- return TALER_MERCHANT_OPOEC_MISSING_MANDATORY;
- if (! (ph->coins.num_coins >= 0) )
+ if ( (! ph->merchant_url) ||
+ (! ph->order_id) )
+ {
+ GNUNET_break (0);
return TALER_MERCHANT_OPOEC_MISSING_MANDATORY;
-
+ }
if (GNUNET_YES !=
TALER_amount_cmp_currency (ph->amount,
ph->max_fee))
{
+ GNUNET_break (0);
return TALER_MERCHANT_OPOEC_INVALID_VALUE;
}