From 8d841f8c99751590333c7f34ce96f51dcd9e27b6 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 31 Aug 2019 13:58:05 +0200 Subject: compute refund amount correctly --- src/backend/taler-merchant-httpd_pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c index f0a25627..3a6bde52 100644 --- a/src/backend/taler-merchant-httpd_pay.c +++ b/src/backend/taler-merchant-httpd_pay.c @@ -1716,7 +1716,7 @@ check_coin_refunded (void *cls, struct DepositConfirmation *dc = &pc->dc[i]; /* Get matching coin from results*/ - if (0 != GNUNET_memcmp (coin_pub, + if (0 == GNUNET_memcmp (coin_pub, &dc->coin_pub)) { dc->refunded = GNUNET_YES; -- cgit v1.2.3