summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-23 23:19:15 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-23 23:19:15 +0200
commit8d73d07d559732dbd010b802ea4ed3602964c0cd (patch)
treec17db196fb7fa305a9452bc86db848f9e1c995b9
parente357d772212a85243d6040e1b2344744f90101f6 (diff)
downloadmerchant-8d73d07d559732dbd010b802ea4ed3602964c0cd.tar.gz
merchant-8d73d07d559732dbd010b802ea4ed3602964c0cd.tar.bz2
merchant-8d73d07d559732dbd010b802ea4ed3602964c0cd.zip
fix #6498
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c
index 63bf2886..4167c873 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -846,8 +846,7 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
}
}
- if ( (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) ||
- (! contract_match) )
+ if (! contract_match)
{
struct TALER_ClaimTokenP db_claim_token;
@@ -883,9 +882,8 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
TALER_EC_GET_ORDERS_ID_UNKNOWN,
"order_id not found in database");
}
- if (god->unclaimed)
- token_match = (0 == GNUNET_memcmp (&db_claim_token,
- &god->claim_token));
+ token_match = (0 == GNUNET_memcmp (&db_claim_token,
+ &god->claim_token));
} /* end unclaimed order logic */
if (NULL == god->fulfillment_url)