commit 1ac2e6242fdb9ae876149e142c5d0142616aacc4 parent 9cfa86ff0c6382d3ed9bbfe990bb7ad1ae865473 Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 22 Aug 2020 19:29:03 +0200 correct fix for #6498 (hopefully) Diffstat:
| M | src/backend/taler-merchant-httpd_get-orders-ID.c | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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)