diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-09-05 13:13:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-09-05 13:13:19 +0200 |
commit | 6f8c2241fcd836bad836861c4b3eb7d43504a780 (patch) | |
tree | ce75d371761d655a8eb040b4e620267a8c116c45 /src/backend/taler-merchant-httpd_post-orders-ID-claim.c | |
parent | c0f992290a61e67f08e720649673951ef86638b5 (diff) |
fix idempotency issue for POST /private/orders (#6445)
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-claim.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-claim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-claim.c b/src/backend/taler-merchant-httpd_post-orders-ID-claim.c index d63766cd..beef21ba 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-claim.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-claim.c @@ -85,11 +85,14 @@ claim_order (const char *instance_id, if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { + struct GNUNET_HashCode unused; + /* see if we have this order in our table of unclaimed orders */ qs = TMH_db->lookup_order (TMH_db->cls, instance_id, order_id, &order_ct, + &unused, contract_terms); if (0 >= qs) { |