diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-22 19:29:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-22 19:29:13 +0200 |
commit | 1ac2e6242fdb9ae876149e142c5d0142616aacc4 (patch) | |
tree | ae4b4bfe4c54898793994d576eea4fa45233048a /src/backend | |
parent | 9cfa86ff0c6382d3ed9bbfe990bb7ad1ae865473 (diff) | |
download | merchant-1ac2e6242fdb9ae876149e142c5d0142616aacc4.tar.gz merchant-1ac2e6242fdb9ae876149e142c5d0142616aacc4.tar.bz2 merchant-1ac2e6242fdb9ae876149e142c5d0142616aacc4.zip |
correct fix for #6498 (hopefully)
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/taler-merchant-httpd_get-orders-ID.c | 5 |
1 files 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 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) |