summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-22 19:29:03 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-22 19:29:13 +0200
commit1ac2e6242fdb9ae876149e142c5d0142616aacc4 (patch)
treeae4b4bfe4c54898793994d576eea4fa45233048a /src
parent9cfa86ff0c6382d3ed9bbfe990bb7ad1ae865473 (diff)
downloadmerchant-1ac2e6242fdb9ae876149e142c5d0142616aacc4.tar.gz
merchant-1ac2e6242fdb9ae876149e142c5d0142616aacc4.tar.bz2
merchant-1ac2e6242fdb9ae876149e142c5d0142616aacc4.zip
correct fix for #6498 (hopefully)
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.c5
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)