From 1ac2e6242fdb9ae876149e142c5d0142616aacc4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Aug 2020 19:29:03 +0200 Subject: correct fix for #6498 (hopefully) --- src/backend/taler-merchant-httpd_get-orders-ID.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c index 2af92e89..794dbc51 100644 --- a/src/backend/taler-merchant-httpd_get-orders-ID.c +++ b/src/backend/taler-merchant-httpd_get-orders-ID.c @@ -883,8 +883,9 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh, TALER_EC_GET_ORDERS_ID_UNKNOWN, "order_id not found in database"); } - token_match = (0 == GNUNET_memcmp (&db_claim_token, - &god->claim_token)); + if (god->unclaimed) + token_match = (0 == GNUNET_memcmp (&db_claim_token, + &god->claim_token)); } /* end unclaimed order logic */ if (NULL == god->fulfillment_url) -- cgit v1.2.3